[x264-devel] commit: Fix weightp logfile parsing on MinGW (Steven Walters )

git version control git at videolan.org
Mon Nov 9 07:20:35 CET 2009


x264 | branch: master | Steven Walters <kemuri9 at gmail.com> | Sun Nov  8 22:18:35 2009 -0800| [af612d79aaaddfaac486d602ce3303836c45bbc6] | committer: Jason Garrett-Glaser 

Fix weightp logfile parsing on MinGW

> http://git.videolan.org/gitweb.cgi/x264.git/?a=commit;h=af612d79aaaddfaac486d602ce3303836c45bbc6
---

 encoder/ratecontrol.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/encoder/ratecontrol.c b/encoder/ratecontrol.c
index 029f9dc..9f10049 100644
--- a/encoder/ratecontrol.c
+++ b/encoder/ratecontrol.c
@@ -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)



More information about the x264-devel mailing list