[FFmpeg-cvslog] avcodec/h264: Fix memleak of a53_caption
Michael Niedermayer
git at videolan.org
Sat Feb 13 02:16:55 CET 2016
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sat Feb 13 02:06:22 2016 +0100| [588e2e338717078e88b0a7526e3740b7d3f6d207] | committer: Michael Niedermayer
avcodec/h264: Fix memleak of a53_caption
Fixes Ticket5111
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=588e2e338717078e88b0a7526e3740b7d3f6d207
---
libavcodec/h264.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index 28b14cd..fe8d44e 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -1927,6 +1927,9 @@ av_cold void ff_h264_free_context(H264Context *h)
av_freep(&h->slice_ctx);
h->nb_slice_ctx = 0;
+ h->a53_caption_size = 0;
+ av_freep(&h->a53_caption);
+
for (i = 0; i < MAX_SPS_COUNT; i++)
av_freep(h->sps_buffers + i);
More information about the ffmpeg-cvslog
mailing list