[FFmpeg-cvslog] h264: Fix memleaks on close, reset more fields
Michael Niedermayer
git at videolan.org
Wed Dec 7 00:49:41 CET 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Dec 6 22:40:43 2011 +0100| [6287a356e335163581b8b8dca71cdc42f9b739d8] | committer: Michael Niedermayer
h264: Fix memleaks on close, reset more fields
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6287a356e335163581b8b8dca71cdc42f9b739d8
---
libavcodec/h264.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 17bbda8..cb7e249 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -4266,6 +4266,7 @@ av_cold int ff_h264_decode_end(AVCodecContext *avctx)
H264Context *h = avctx->priv_data;
MpegEncContext *s = &h->s;
+ ff_h264_remove_all_refs(h);
ff_h264_free_context(h);
MPV_common_end(s);
More information about the ffmpeg-cvslog
mailing list