summaryrefslogtreecommitdiff
path: root/libavcodec/nvenc.c
diff options
context:
space:
mode:
authorTimo Rothenpieler <timo@rothenpieler.org>2018-08-21 14:28:15 +0200
committerTimo Rothenpieler <timo@rothenpieler.org>2018-08-21 15:14:56 +0200
commitdc2d56a66b8ad8bc5b07a5cc9c0608a67d5c2ae2 (patch)
treef7dc5ab09ab7119e01bab2b0303195399ec537eb /libavcodec/nvenc.c
parent6972dae5a494fb69836343ea0e8d430769177c5d (diff)
avcodec/nvenc: add option to turn off a53 closed caption embedding
Diffstat (limited to 'libavcodec/nvenc.c')
-rw-r--r--libavcodec/nvenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index cfa7268a5e..e180d7b993 100644
--- a/libavcodec/nvenc.c
+++ b/libavcodec/nvenc.c
@@ -2107,7 +2107,7 @@ int ff_nvenc_send_frame(AVCodecContext *avctx, const AVFrame *frame)
pic_params.inputTimeStamp = frame->pts;
- if (av_frame_get_side_data(frame, AV_FRAME_DATA_A53_CC)) {
+ if (ctx->a53_cc && av_frame_get_side_data(frame, AV_FRAME_DATA_A53_CC)) {
if (ff_alloc_a53_sei(frame, sizeof(NV_ENC_SEI_PAYLOAD), (void**)&sei_data, &sei_size) < 0) {
av_log(ctx, AV_LOG_ERROR, "Not enough memory for closed captions, skipping\n");
}