提交 a4ed51ab 编写于 作者: M Michael Niedermayer

avcodec/vp3: free tables before allocating new ones

Fixes memleak on seeking
Signed-off-by: NMichael Niedermayer <michaelni@gmx.at>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册