[FFmpeg-cvslog] lavc/videotoolboxenc: config-gate ATSC CC support

rcombs git at videolan.org
Thu Dec 23 02:44:58 EET 2021


ffmpeg | branch: master | rcombs <rcombs at rcombs.me> | Thu Dec 16 17:28:52 2021 -0600| [c8323350f49dd95a67ceb42cef9cb012673f4598] | committer: rcombs

lavc/videotoolboxenc: config-gate ATSC CC support

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c8323350f49dd95a67ceb42cef9cb012673f4598
---

 libavcodec/videotoolboxenc.c | 2 ++
 1 file changed, 2 insertions(+)

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(



More information about the ffmpeg-cvslog mailing list