[FFmpeg-cvslog] avcodec/libsvtav1: Fix value range for rc mode

Limin Wang git at videolan.org
Sat Sep 25 16:53:53 EEST 2021


ffmpeg | branch: master | Limin Wang <lance.lmwang at gmail.com> | Sat Sep 18 08:24:17 2021 +0800| [0463f5d6d56db6cc01bc88a0d77488f4ef23dfdc] | committer: Limin Wang

avcodec/libsvtav1: Fix value range for rc mode

Reviewed-by: Jan Ekström <jeebjp at gmail.com>
Signed-off-by: Limin Wang <lance.lmwang at gmail.com>

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

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

diff --git a/libavcodec/libsvtav1.c b/libavcodec/libsvtav1.c
index 0dc25ca95d..a02ba6a82f 100644
--- a/libavcodec/libsvtav1.c
+++ b/libavcodec/libsvtav1.c
@@ -520,7 +520,7 @@ static const AVOption options[] = {
 #undef LEVEL
 
     { "rc", "Bit rate control mode", OFFSET(rc_mode),
-      AV_OPT_TYPE_INT, { .i64 = 0 }, 0, 3, VE , "rc"},
+      AV_OPT_TYPE_INT, { .i64 = 0 }, 0, 2, VE , "rc"},
         { "cqp", "Constant quantizer", 0, AV_OPT_TYPE_CONST, { .i64 = 0 },  INT_MIN, INT_MAX, VE, "rc" },
         { "vbr", "Variable Bit Rate, use a target bitrate for the entire stream", 0, AV_OPT_TYPE_CONST, { .i64 = 1 },  INT_MIN, INT_MAX, VE, "rc" },
         { "cvbr", "Constrained Variable Bit Rate, use a target bitrate for each GOP", 0, AV_OPT_TYPE_CONST,{ .i64 = 2 },  INT_MIN, INT_MAX, VE, "rc" },



More information about the ffmpeg-cvslog mailing list