]> granicus.if.org Git - libx264/commitdiff
cli: workaround to allow "--ratetol inf" on win32.
authorLoren Merritt <pengvado@videolan.org>
Tue, 16 Aug 2005 15:09:41 +0000 (15:09 +0000)
committerLoren Merritt <pengvado@videolan.org>
Tue, 16 Aug 2005 15:09:41 +0000 (15:09 +0000)
git-svn-id: svn://svn.videolan.org/x264/trunk@286 df754926-b1dd-0310-bc7b-ec298dee348c

x264.c

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