summaryrefslogtreecommitdiff
path: root/libavcodec/nvenc.c
diff options
context:
space:
mode:
authorLimin Wang <lance.lmwang@gmail.com>2021-12-24 12:32:47 +0800
committerTimo Rothenpieler <timo@rothenpieler.org>2021-12-25 14:12:26 +0100
commit0c8741f819018c9a0820d7272052de4a43cd6f95 (patch)
treecdeb95193be1c6ed0cc2e013cdc5acfd92ff4c90 /libavcodec/nvenc.c
parentf3a949dc4c6f01f43d502cbe2a7c06fe95114c79 (diff)
avcodec/nvenc: add udu_sei option to import user data unregistered SEIs
Signed-off-by: Limin Wang <lance.lmwang@gmail.com> Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
Diffstat (limited to 'libavcodec/nvenc.c')
-rw-r--r--libavcodec/nvenc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index edc46ed33a..31dfed9241 100644
--- a/libavcodec/nvenc.c
+++ b/libavcodec/nvenc.c
@@ -2217,6 +2217,9 @@ static int prepare_sei_data_array(AVCodecContext *avctx, const AVFrame *frame)
}
}
+ if (!ctx->udu_sei)
+ return sei_count;
+
for (i = 0; i < frame->nb_side_data; i++) {
AVFrameSideData *side_data = frame->side_data[i];
void *tmp;