diff options
author | Timo Rothenpieler <timo@rothenpieler.org> | 2021-06-06 21:53:53 +0200 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2021-06-06 22:01:56 +0200 |
commit | 8bcce5673a267ed371140bf3228ffb420ca2f69b (patch) | |
tree | bdac80e70cf398409f2661c70c120a3994bf6a79 /libavcodec/nvenc.c | |
parent | c67f354be8610eefb9a2b195f6dc4d6da637b687 (diff) | |
download | ffmpeg-8bcce5673a267ed371140bf3228ffb420ca2f69b.tar.gz |
avcodec/nvenc: add option to disable all extra SEI data
With these triggering a lot of crashes recently, an option to globally
disable all of them is added as a tool to work around those crashes in
case the SEI data is not needed by the user.
Also re-enables s12m for hevc_nvenc, since the issue is not specifically
with that, but it affects all SEI data.
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
Diffstat (limited to 'libavcodec/nvenc.c')
-rw-r--r-- | libavcodec/nvenc.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index a2513c8a8b..ee046b9cef 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -2325,10 +2325,12 @@ static int nvenc_send_frame(AVCodecContext *avctx, const AVFrame *frame) pic_params.inputTimeStamp = frame->pts; - res = prepare_sei_data_array(avctx, frame); - if (res < 0) - return res; - sei_count = res; + if (ctx->extra_sei) { + res = prepare_sei_data_array(avctx, frame); + if (res < 0) + return res; + sei_count = res; + } nvenc_codec_specific_pic_params(avctx, &pic_params, ctx->sei_data, sei_count); } else { |