summaryrefslogtreecommitdiff
path: root/libavcodec/videotoolboxenc.c
diff options
context:
space:
mode:
authorrcombs <rcombs@rcombs.me>2021-12-16 17:28:52 -0600
committerrcombs <rcombs@rcombs.me>2021-12-22 18:38:40 -0600
commitc8323350f49dd95a67ceb42cef9cb012673f4598 (patch)
treefb70ffe61264cdfb5489c39345a1c4448b1bfedc /libavcodec/videotoolboxenc.c
parent7644c6224f327de23d2532d879aa36a31fe46bf4 (diff)
downloadffmpeg-c8323350f49dd95a67ceb42cef9cb012673f4598.tar.gz
lavc/videotoolboxenc: config-gate ATSC CC support
Diffstat (limited to 'libavcodec/videotoolboxenc.c')
-rw-r--r--libavcodec/videotoolboxenc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/videotoolboxenc.c b/libavcodec/videotoolboxenc.c
index 96e987c446..2dc4ce076c 100644
--- a/libavcodec/videotoolboxenc.c
+++ b/libavcodec/videotoolboxenc.c
@@ -2361,6 +2361,7 @@ static int vtenc_send_frame(AVCodecContext *avctx,
return status;
}
+#if CONFIG_ATSC_A53
side_data = av_frame_get_side_data(frame, AV_FRAME_DATA_A53_CC);
if (vtctx->a53_cc && side_data && side_data->size) {
sei = av_mallocz(sizeof(*sei));
@@ -2375,6 +2376,7 @@ static int vtenc_send_frame(AVCodecContext *avctx,
}
}
}
+#endif
time = CMTimeMake(frame->pts * avctx->time_base.num, avctx->time_base.den);
status = VTCompressionSessionEncodeFrame(