Skip to content

Commit

Permalink
lavc/videotoolboxenc: config-gate ATSC CC support
Browse files Browse the repository at this point in the history
  • Loading branch information
rcombs committed Dec 23, 2021
1 parent 7644c62 commit c832335
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libavcodec/videotoolboxenc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand All @@ -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(
Expand Down

0 comments on commit c832335

Please sign in to comment.