diff options
author | Will Kelleher <wkelleher@gogoair.com> | 2016-04-07 08:58:31 -0500 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-05-15 01:30:53 +0200 |
commit | 964f07f68e1cc4e2d585615e2b1a1fade269afb0 (patch) | |
tree | 5a04e3ce7977e8bf132cd94cc44ad4758cdfd621 /libavcodec/hevc_sei.c | |
parent | 6543a72fcefca574691a65ba7b80c1f190eaba1e (diff) | |
download | ffmpeg-964f07f68e1cc4e2d585615e2b1a1fade269afb0.tar.gz |
hevc: Fix memory leak related to a53_caption data
Signed-off-by: Will Kelleher <wkelleher@gogoair.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/hevc_sei.c')
-rw-r--r-- | libavcodec/hevc_sei.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/hevc_sei.c b/libavcodec/hevc_sei.c index 40685fe5d8..f598b6393a 100644 --- a/libavcodec/hevc_sei.c +++ b/libavcodec/hevc_sei.c @@ -373,3 +373,9 @@ int ff_hevc_decode_nal_sei(HEVCContext *s) } while (more_rbsp_data(&s->HEVClc->gb)); return 1; } + +void ff_hevc_reset_sei(HEVCContext *s) +{ + s->a53_caption_size = 0; + av_freep(&s->a53_caption); +} |