]> git.videolan.org Git - x264.git/commitdiff
Fix weightp logfile parsing on MinGW
authorSteven Walters <kemuri9@gmail.com>
Mon, 9 Nov 2009 06:18:35 +0000 (22:18 -0800)
committerJason Garrett-Glaser <darkshikari@gmail.com>
Mon, 9 Nov 2009 06:18:35 +0000 (22:18 -0800)
encoder/ratecontrol.c

index 029f9dca34331967c7b38d2167838fb2cbea2b6d..9f10049018471f18cabe0dfa0745905a962bf447 100644 (file)
@@ -50,8 +50,8 @@ typedef struct
     int s_count;
     float blurred_complexity;
     char direct_mode;
-    int8_t weight[2];
-    int8_t i_weight_denom;
+    int16_t weight[2];
+    int16_t i_weight_denom;
     int refcount[16];
     int refs;
 } ratecontrol_entry_t;
@@ -684,7 +684,7 @@ int x264_ratecontrol_new( x264_t *h )
             rce->i_weight_denom = -1;
             char *w = strchr( p, 'w' );
             if( w )
-                if( sscanf( w, "w:%hhd,%hhd,%hhd", &rce->i_weight_denom, &rce->weight[0], &rce->weight[1] ) != 3 )
+                if( sscanf( w, "w:%hd,%hd,%hd", &rce->i_weight_denom, &rce->weight[0], &rce->weight[1] ) != 3 )
                     rce->i_weight_denom = -1;
 
             switch(pict_type)