[FFmpeg-cvslog] avcodec/nvenc: disable s12m timestamps by default

Timo Rothenpieler git at videolan.org
Sun May 30 00:29:23 EEST 2021


ffmpeg | branch: release/4.4 | Timo Rothenpieler <timo at rothenpieler.org> | Sat May 29 22:53:38 2021 +0200| [8d172d940946dce59841b1c95059f3b38f68ca61] | committer: Timo Rothenpieler

avcodec/nvenc: disable s12m timestamps by default

Leads to weird crashes with valid looking input data for otherwise
unknown reasons.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8d172d940946dce59841b1c95059f3b38f68ca61
---

 libavcodec/nvenc_hevc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/nvenc_hevc.c b/libavcodec/nvenc_hevc.c
index 441e7871d2..82fbb23bf7 100644
--- a/libavcodec/nvenc_hevc.c
+++ b/libavcodec/nvenc_hevc.c
@@ -148,7 +148,7 @@ static const AVOption options[] = {
     { "middle",       "",                                   0,                    AV_OPT_TYPE_CONST, { .i64 = 2 }, 0, 0,       VE, "b_ref_mode" },
 #endif
     { "a53cc",        "Use A53 Closed Captions (if available)", OFFSET(a53_cc),   AV_OPT_TYPE_BOOL,  { .i64 = 1 }, 0, 1,       VE },
-    { "s12m_tc",      "Use timecode (if available)",        OFFSET(s12m_tc),      AV_OPT_TYPE_BOOL,  { .i64 = 1 }, 0, 1,       VE },
+    { "s12m_tc",      "Use timecode (if available)",        OFFSET(s12m_tc),      AV_OPT_TYPE_BOOL,  { .i64 = 0 }, 0, 1,       VE },
     { "dpb_size",     "Specifies the DPB size used for encoding (0 means automatic)",
                                                             OFFSET(dpb_size),     AV_OPT_TYPE_INT,   { .i64 = 0 }, 0, INT_MAX, VE },
 #ifdef NVENC_HAVE_MULTIPASS



More information about the ffmpeg-cvslog mailing list