aboutsummaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorLaurent Aimar2011-10-08 23:40:33 +0200
committerMichael Niedermayer2011-10-09 03:08:03 +0200
commit6c1fb3e7631178c2a45c6c41b9b8d9ee3a5298fc (patch)
treeff89425c8536594f1e57d84b6f5cfab2488e694e /libavcodec
parentda35797359cec148f3fe59894c62727b0422d75a (diff)
eamad: release the reference frame on video size changes
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/eamad.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/eamad.c b/libavcodec/eamad.c
index dfcdb2eaa1..b0c42f0222 100644
--- a/libavcodec/eamad.c
+++ b/libavcodec/eamad.c
@@ -273,6 +273,8 @@ static int decode_frame(AVCodecContext *avctx,
avcodec_set_dimensions(avctx, s->width, s->height);
if (t->frame.data[0])
avctx->release_buffer(avctx, &t->frame);
+ if (t->last_frame.data[0])
+ avctx->release_buffer(avctx, &t->last_frame);
}
t->frame.reference = 1;