summaryrefslogtreecommitdiff
path: root/libavcodec/nvenc_h264.c
diff options
context:
space:
mode:
authorTimo Rothenpieler <timo@rothenpieler.org>2021-06-06 21:53:53 +0200
committerTimo Rothenpieler <timo@rothenpieler.org>2021-06-06 22:01:56 +0200
commit8bcce5673a267ed371140bf3228ffb420ca2f69b (patch)
treebdac80e70cf398409f2661c70c120a3994bf6a79 /libavcodec/nvenc_h264.c
parentc67f354be8610eefb9a2b195f6dc4d6da637b687 (diff)
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_h264.c')
-rw-r--r--libavcodec/nvenc_h264.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/nvenc_h264.c b/libavcodec/nvenc_h264.c
index 5ad6b35836..c7af7fa682 100644
--- a/libavcodec/nvenc_h264.c
+++ b/libavcodec/nvenc_h264.c
@@ -182,6 +182,8 @@ static const AVOption options[] = {
{ "ldkfs", "Low delay key frame scale; Specifies the Scene Change frame size increase allowed in case of single frame VBV and CBR",
OFFSET(ldkfs), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, UCHAR_MAX, VE },
#endif
+ { "extra_sei", "Pass on extra SEI data (e.g. a53 cc) to be included in the bitstream",
+ OFFSET(extra_sei), AV_OPT_TYPE_BOOL, { .i64 = 1 }, 0, 1, VE },
{ NULL }
};