From: Anton Mitrofanov Date: Mon, 19 Feb 2018 16:53:38 +0000 (+0300) Subject: Fix --qpmax default value in fullhelp X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0e6425e03e28213e73ae770df5e08fffba72d290;p=libx264 Fix --qpmax default value in fullhelp --- 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 With CRF+VBV, limit RF to this value\n" " May cause VBV underflows!\n" ); H2( " --qpmin Set min QP [%d]\n", defaults->rc.i_qp_min ); - H2( " --qpmax Set max QP [%d]\n", defaults->rc.i_qp_max ); + H2( " --qpmax Set max QP [%d]\n", X264_MIN( defaults->rc.i_qp_max, QP_MAX ) ); H2( " --qpstep Set max QP step [%d]\n", defaults->rc.i_qp_step ); H2( " --ratetol Tolerance of ABR ratecontrol and VBV [%.1f]\n", defaults->rc.f_rate_tolerance ); H2( " --ipratio QP factor between I and P [%.2f]\n", defaults->rc.f_ip_factor );