mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
h264: Fix memleaks on close, reset more fields
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
ba3bb53bdc
commit
6287a356e3
@ -4266,6 +4266,7 @@ av_cold int ff_h264_decode_end(AVCodecContext *avctx)
|
|||||||
H264Context *h = avctx->priv_data;
|
H264Context *h = avctx->priv_data;
|
||||||
MpegEncContext *s = &h->s;
|
MpegEncContext *s = &h->s;
|
||||||
|
|
||||||
|
ff_h264_remove_all_refs(h);
|
||||||
ff_h264_free_context(h);
|
ff_h264_free_context(h);
|
||||||
|
|
||||||
MPV_common_end(s);
|
MPV_common_end(s);
|
||||||
|
Loading…
Reference in New Issue
Block a user