]> granicus.if.org Git - libx264/commitdiff
* x264: added --ipratio --pbratio in help section.
authorLaurent Aimar <fenrir@videolan.org>
Sun, 29 Aug 2004 12:02:50 +0000 (12:02 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Sun, 29 Aug 2004 12:02:50 +0000 (12:02 +0000)
git-svn-id: svn://svn.videolan.org/x264/trunk@46 df754926-b1dd-0310-bc7b-ec298dee348c

x264.c

diff --git a/x264.c b/x264.c
index a82fa8299a1a8f6e443877becf07b087c59bf8cf..c7c6df962bee33db734ed0a16b2b2cda0b5ae7f5 100644 (file)
--- a/x264.c
+++ b/x264.c
@@ -119,6 +119,8 @@ static void Help( void )
              "      --rcsens <integer>      RC sensitivity\n"
              "      --rcbuf <integer>       Size of VBV buffer\n"
              "      --rcinitbuf <integer>   Initial VBV buffer occupancy\n"
+             "      --ipratio <float>       QP factor between I and P\n"
+             "      --pbratio <float>       QP factor between P and B\n"
              "\n"
              "  -p, --pass <1|2>            Enable 2 pass ratecontrol\n"
              "      --stats <string>        Filename for 2 pass stats\n"
@@ -312,10 +314,10 @@ static int  Parse( int argc, char **argv,
                 param->rc.i_rc_sens = atoi(optarg);
                 break;
             case OPT_IPRATIO:
-                param->rc.f_ip_factor = atoi(optarg);
+                param->rc.f_ip_factor = atof(optarg);
                 break;
             case OPT_PBRATIO:
-                param->rc.f_pb_factor = atoi(optarg);
+                param->rc.f_pb_factor = atof(optarg);
                 break;
             case 'p':
             {