diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-12-06 22:40:43 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-12-07 00:47:41 +0100 |
commit | 6287a356e335163581b8b8dca71cdc42f9b739d8 (patch) | |
tree | d17e615d15852b9806cc6addcf4c7cde977fa87d /libavcodec/h264.c | |
parent | ba3bb53bdcb91332296adb958e3271759dcc2974 (diff) | |
download | ffmpeg-6287a356e335163581b8b8dca71cdc42f9b739d8.tar.gz |
h264: Fix memleaks on close, reset more fields
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r-- | libavcodec/h264.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 17bbda8408..cb7e24961c 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); |