Commit 6c1fb3e7 authored by Laurent Aimar's avatar Laurent Aimar Committed by Michael Niedermayer

eamad: release the reference frame on video size changes

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent da357973
...@@ -273,6 +273,8 @@ static int decode_frame(AVCodecContext *avctx, ...@@ -273,6 +273,8 @@ static int decode_frame(AVCodecContext *avctx,
avcodec_set_dimensions(avctx, s->width, s->height); avcodec_set_dimensions(avctx, s->width, s->height);
if (t->frame.data[0]) if (t->frame.data[0])
avctx->release_buffer(avctx, &t->frame); avctx->release_buffer(avctx, &t->frame);
if (t->last_frame.data[0])
avctx->release_buffer(avctx, &t->last_frame);
} }
t->frame.reference = 1; t->frame.reference = 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