lavc/videotoolboxenc: config-gate ATSC CC support
This commit is contained in:
@@ -2361,6 +2361,7 @@ static int vtenc_send_frame(AVCodecContext *avctx,
|
|||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if CONFIG_ATSC_A53
|
||||||
side_data = av_frame_get_side_data(frame, AV_FRAME_DATA_A53_CC);
|
side_data = av_frame_get_side_data(frame, AV_FRAME_DATA_A53_CC);
|
||||||
if (vtctx->a53_cc && side_data && side_data->size) {
|
if (vtctx->a53_cc && side_data && side_data->size) {
|
||||||
sei = av_mallocz(sizeof(*sei));
|
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);
|
time = CMTimeMake(frame->pts * avctx->time_base.num, avctx->time_base.den);
|
||||||
status = VTCompressionSessionEncodeFrame(
|
status = VTCompressionSessionEncodeFrame(
|
||||||
|
Reference in New Issue
Block a user