mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-16 04:32:47 +02:00
avcodec/vp3: free tables before allocating new ones
Fixes memleak on seeking Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user