[x264-devel] Fix --qpmax default value in fullhelp

Anton Mitrofanov git at videolan.org
Tue Aug 7 00:05:14 CEST 2018


x264 | branch: master | Anton Mitrofanov <BugMaster at narod.ru> | Mon Feb 19 19:53:38 2018 +0300| [0e6425e03e28213e73ae770df5e08fffba72d290] | committer: Henrik Gramner

Fix --qpmax default value in fullhelp

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=0e6425e03e28213e73ae770df5e08fffba72d290
---

 x264.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/x264.c b/x264.c
index 7688b60d..b02ba49a 100644
--- a/x264.c
+++ b/x264.c
@@ -731,7 +731,7 @@ static void help( x264_param_t *defaults, int longhelp )
     H2( "      --crf-max <float>       With CRF+VBV, limit RF to this value\n"
         "                                  May cause VBV underflows!\n" );
     H2( "      --qpmin <integer>       Set min QP [%d]\n", defaults->rc.i_qp_min );
-    H2( "      --qpmax <integer>       Set max QP [%d]\n", defaults->rc.i_qp_max );
+    H2( "      --qpmax <integer>       Set max QP [%d]\n", X264_MIN( defaults->rc.i_qp_max, QP_MAX ) );
     H2( "      --qpstep <integer>      Set max QP step [%d]\n", defaults->rc.i_qp_step );
     H2( "      --ratetol <float>       Tolerance of ABR ratecontrol and VBV [%.1f]\n", defaults->rc.f_rate_tolerance );
     H2( "      --ipratio <float>       QP factor between I and P [%.2f]\n", defaults->rc.f_ip_factor );



More information about the x264-devel mailing list