Commit 48af1d03 authored by Loren Merritt's avatar Loren Merritt

cli: workaround to allow "--ratetol inf" on win32.


git-svn-id: svn://svn.videolan.org/x264/trunk@286 df754926-b1dd-0310-bc7b-ec298dee348c
parent 796da8ed
......@@ -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 );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment