[FFmpeg-devel] [PATCH] hevc: Fix memory leak related to a53_caption data
Will Kelleher
wkelleher at gogoair.com
Fri Apr 8 17:05:13 CEST 2016
Signed-off-by: Will Kelleher <wkelleher at gogoair.com>
---
libavcodec/hevc_parser.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavcodec/hevc_parser.c b/libavcodec/hevc_parser.c
index 4625e61..5558afc 100644
--- a/libavcodec/hevc_parser.c
+++ b/libavcodec/hevc_parser.c
@@ -202,6 +202,9 @@ static inline int parse_nal_units(AVCodecParserContext *s, const uint8_t *buf,
gb = &h->HEVClc->gb;
+ h->a53_caption_size = 0;
+ av_freep(&h->a53_caption);
+
/* set some sane default values */
s->pict_type = AV_PICTURE_TYPE_I;
s->key_frame = 0;
--
2.8.0
More information about the ffmpeg-devel
mailing list