Commit a4ed51ab authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/vp3: free tables before allocating new ones

Fixes memleak on seeking
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 90b26d63
......@@ -1662,6 +1662,8 @@ static av_cold int allocate_tables(AVCodecContext *avctx)
Vp3DecodeContext *s = avctx->priv_data;
int y_fragment_count, c_fragment_count;
free_tables(avctx);
y_fragment_count = s->fragment_width[0] * s->fragment_height[0];
c_fragment_count = s->fragment_width[1] * s->fragment_height[1];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment