diff options
author | Limin Wang <lance.lmwang@gmail.com> | 2021-12-24 12:32:47 +0800 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2021-12-25 14:12:26 +0100 |
commit | 0c8741f819018c9a0820d7272052de4a43cd6f95 (patch) | |
tree | cdeb95193be1c6ed0cc2e013cdc5acfd92ff4c90 /libavcodec/nvenc.c | |
parent | f3a949dc4c6f01f43d502cbe2a7c06fe95114c79 (diff) | |
download | ffmpeg-0c8741f819018c9a0820d7272052de4a43cd6f95.tar.gz |
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.c | 3 |
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; |