diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c index 28f0569d55..1d4c575bd3 100644 --- a/libavcodec/vp3.c +++ b/libavcodec/vp3.c @@ -2025,6 +2025,7 @@ static int vp3_decode_frame(AVCodecContext *avctx, } return ret; } else if (type == 2) { + vp3_decode_end(avctx); ret = theora_decode_tables(avctx, &gb); if (ret >= 0) ret = vp3_decode_init(avctx);