[FFmpeg-cvslog] eamad: release the reference frame on video size changes
Laurent Aimar
git at videolan.org
Fri Nov 4 13:22:17 CET 2011
ffmpeg | branch: release/0.8 | Laurent Aimar <fenrir at videolan.org> | Sat Oct 8 23:40:33 2011 +0200| [5415c488f9c6103df06ccfdc77dd50d1f030d271] | committer: Michael Niedermayer
eamad: release the reference frame on video size changes
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
(cherry picked from commit 6c1fb3e7631178c2a45c6c41b9b8d9ee3a5298fc)
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5415c488f9c6103df06ccfdc77dd50d1f030d271
---
libavcodec/eamad.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/libavcodec/eamad.c b/libavcodec/eamad.c
index 150bd08..602bbfc 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;
More information about the ffmpeg-cvslog
mailing list