]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/nvenc: allow forcing keyframes by default
authorTimo Rothenpieler <timo@rothenpieler.org>
Mon, 20 Feb 2017 21:38:39 +0000 (22:38 +0100)
committerTimo Rothenpieler <timo@rothenpieler.org>
Mon, 20 Feb 2017 21:38:39 +0000 (22:38 +0100)
libavcodec/nvenc_h264.c
libavcodec/nvenc_hevc.c

index 76dc48bfdf47644c8d6d5da8205189d930bd2bfe..3f71204afbc42ebb1278a81d1a10b1b4421ff8e5 100644 (file)
@@ -92,7 +92,7 @@ static const AVOption options[] = {
     { "no-scenecut",  "When lookahead is enabled, set this to 1 to disable adaptive I-frame insertion at scene cuts",
                                                             OFFSET(no_scenecut),  AV_OPT_TYPE_BOOL,  { .i64 = 0 }, 0,  1, VE },
     { "forced-idr",   "If forcing keyframes, force them as IDR frames.",
-                                                            OFFSET(forced_idr),   AV_OPT_TYPE_BOOL,  { .i64 = -1 }, -1, 1, VE },
+                                                            OFFSET(forced_idr),   AV_OPT_TYPE_BOOL,  { .i64 = 0 }, -1, 1, VE },
     { "b_adapt",      "When lookahead is enabled, set this to 0 to disable adaptive B-frame decision",
                                                             OFFSET(b_adapt),      AV_OPT_TYPE_BOOL,  { .i64 = 1 }, 0,  1, VE },
     { "spatial-aq",   "set to 1 to enable Spatial AQ",      OFFSET(aq),           AV_OPT_TYPE_BOOL,  { .i64 = 0 }, 0,  1, VE },
index cd1dcb9e1108646f638aeb3df3fd7da65d9e1f50..1c97fb0e45a23d26675f9da730af461ef2f30406 100644 (file)
@@ -91,7 +91,7 @@ static const AVOption options[] = {
     { "no-scenecut",  "When lookahead is enabled, set this to 1 to disable adaptive I-frame insertion at scene cuts",
                                                             OFFSET(no_scenecut),  AV_OPT_TYPE_BOOL,  { .i64 = 0 }, 0, 1, VE },
     { "forced-idr",   "If forcing keyframes, force them as IDR frames.",
-                                                            OFFSET(forced_idr),   AV_OPT_TYPE_BOOL,  { .i64 = -1 }, -1, 1, VE },
+                                                            OFFSET(forced_idr),   AV_OPT_TYPE_BOOL,  { .i64 = 0 }, -1, 1, VE },
     { "spatial_aq",   "set to 1 to enable Spatial AQ",      OFFSET(aq),           AV_OPT_TYPE_BOOL,  { .i64 = 0 }, 0, 1, VE },
     { "temporal_aq",  "set to 1 to enable Temporal AQ",     OFFSET(temporal_aq),  AV_OPT_TYPE_BOOL,  { .i64 = 0 }, 0, 1, VE },
     { "zerolatency",  "Set 1 to indicate zero latency operation (no reordering delay)",