[x264-devel] Missing whitespace after bitdepth= in the statsfile's first line
Vincent Cappe
vcappe at gmail.com
Wed Dec 15 16:52:42 CET 2010
The first line of the statsfile lacks a whitespace after the bitdepth.
That is, it reads "bitdepth=8cabac=1" instead of "bitdepth=8 cabac=1".
Due to the way it is parsed, it does not actually matter; but...
Suggested patch:
diff --git a/common/common.c b/common/common.c
index 26b62a3..8425865 100644
--- a/common/common.c
+++ b/common/common.c
@@ -1207,7 +1207,7 @@ char *x264_param2string( x264_param_t *p, int b_res )
s += sprintf( s, "%dx%d ", p->i_width, p->i_height );
s += sprintf( s, "fps=%u/%u ", p->i_fps_num, p->i_fps_den );
s += sprintf( s, "timebase=%u/%u ", p->i_timebase_num, p->i_timebase_den );
- s += sprintf( s, "bitdepth=%d", BIT_DEPTH );
+ s += sprintf( s, "bitdepth=%d ", BIT_DEPTH );
}
s += sprintf( s, "cabac=%d", p->b_cabac );
--
Vincent Cappe
More information about the x264-devel
mailing list