]> granicus.if.org Git - libx264/commitdiff
Fix --qpmax default value in fullhelp
authorAnton Mitrofanov <BugMaster@narod.ru>
Mon, 19 Feb 2018 16:53:38 +0000 (19:53 +0300)
committerHenrik Gramner <henrik@gramner.com>
Sun, 27 May 2018 18:58:53 +0000 (20:58 +0200)
x264.c

diff --git a/x264.c b/x264.c
index 7688b60d733bec00a9ef8b76d670381402a1cdc0..b02ba49aefcbd0c46f061f96c3076c1ee31ed6f0 100644 (file)
--- 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 );