summaryrefslogtreecommitdiffstats
path: root/libavcodec/hevc.c
diff options
context:
space:
mode:
authorWill Kelleher <wkelleher@gogoair.com>2015-11-11 15:37:29 -0600
committerMichael Niedermayer <michael@niedermayer.cc>2015-11-12 13:16:25 +0100
commitb1a32429ef6ccd94673e4c36924ad0949f4d50a1 (patch)
tree5269906c2e6a13b7d55b7b03653570017db67eb2 /libavcodec/hevc.c
parent58d32c00beef237ffff56bd61a5fdc99057161a6 (diff)
downloadffmpeg-streaming-b1a32429ef6ccd94673e4c36924ad0949f4d50a1.zip
ffmpeg-streaming-b1a32429ef6ccd94673e4c36924ad0949f4d50a1.tar.gz
hevc: Fix a53 caption extraction
Just realized my previous patch doesn't work quite right. I uploaded a better sample file that actually has visible captions to /incoming/hevc_cc.ts. I tested with that file doing hevc->x264 and it works. This is basically an exact copy of the existing h264 logic. Signed-off-by: Will Kelleher <wkelleher@gogoair.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/hevc.c')
-rw-r--r--libavcodec/hevc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c
index 1fa5283..ece36f8 100644
--- a/libavcodec/hevc.c
+++ b/libavcodec/hevc.c
@@ -2573,6 +2573,7 @@ static int set_side_data(HEVCContext *s)
if (sd)
memcpy(sd->data, s->a53_caption, s->a53_caption_size);
av_freep(&s->a53_caption);
+ s->a53_caption_size = 0;
s->avctx->properties |= FF_CODEC_PROPERTY_CLOSED_CAPTIONS;
}
OpenPOWER on IntegriCloud