summaryrefslogtreecommitdiffstats
path: root/libavcodec/h264.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-12-06 22:40:43 +0100
committerMichael Niedermayer <michaelni@gmx.at>2011-12-07 00:47:41 +0100
commit6287a356e335163581b8b8dca71cdc42f9b739d8 (patch)
treed17e615d15852b9806cc6addcf4c7cde977fa87d /libavcodec/h264.c
parentba3bb53bdcb91332296adb958e3271759dcc2974 (diff)
downloadffmpeg-streaming-6287a356e335163581b8b8dca71cdc42f9b739d8.zip
ffmpeg-streaming-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.c1
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);
OpenPOWER on IntegriCloud