]> git.sesse.net Git - ffmpeg/commitdiff
librav1e: Don't make users explicitly set -qp -1 to use bit rate mode
authorDerek Buitenhuis <derek.buitenhuis@gmail.com>
Mon, 11 Nov 2019 14:15:41 +0000 (14:15 +0000)
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>
Wed, 13 Nov 2019 18:00:51 +0000 (18:00 +0000)
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
libavcodec/librav1e.c

index 5052cac8960ba247cd4b95a226c88dbad31f35d3..a5aedd512cd788f7caa2f18cb038d9d48da2f1b5 100644 (file)
@@ -533,7 +533,7 @@ retry:
 #define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM
 
 static const AVOption options[] = {
-    { "qp", "use constant quantizer mode", OFFSET(quantizer), AV_OPT_TYPE_INT, { .i64 = 100 }, -1, 255, VE },
+    { "qp", "use constant quantizer mode", OFFSET(quantizer), AV_OPT_TYPE_INT, { .i64 = -1 }, -1, 255, VE },
     { "speed", "what speed preset to use", OFFSET(speed), AV_OPT_TYPE_INT, { .i64 = -1 }, -1, 10, VE },
     { "tiles", "number of tiles encode with", OFFSET(tiles), AV_OPT_TYPE_INT, { .i64 = 0 }, -1, INT64_MAX, VE },
     { "tile-rows", "number of tiles rows to encode with", OFFSET(tile_rows), AV_OPT_TYPE_INT, { .i64 = 0 }, -1, INT64_MAX, VE },