From: Loren Merritt Date: Tue, 16 Aug 2005 15:09:41 +0000 (+0000) Subject: cli: workaround to allow "--ratetol inf" on win32. X-Git-Url: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=48af1d03ed42e14b51f5e9c6986bd910aaab5b7a;p=x264.git cli: workaround to allow "--ratetol inf" on win32. git-svn-id: svn://svn.videolan.org/x264/trunk@286 df754926-b1dd-0310-bc7b-ec298dee348c --- diff --git a/x264.c b/x264.c index c07c8910..c648d263 100644 --- a/x264.c +++ b/x264.c @@ -676,7 +676,7 @@ static int Parse( int argc, char **argv, param->i_level_idc = atoi(optarg); break; case OPT_RATETOL: - param->rc.f_rate_tolerance = atof(optarg); + param->rc.f_rate_tolerance = !strncmp("inf", optarg, 3) ? 1e9 : atof(optarg); break; case OPT_VBVMAXRATE: param->rc.i_vbv_max_bitrate = atoi( optarg );