[x264-devel] commit: Print crf-max with appropriate precision in SEI ( Jason Garrett-Glaser )

git at videolan.org git at videolan.org
Tue Apr 6 21:48:27 CEST 2010


x264 | branch: master | Jason Garrett-Glaser <darkshikari at gmail.com> | Mon Mar 29 02:14:25 2010 -0700| [d8d8e7ea3043adc292ce97851eaec057d002dc59] | committer: Jason Garrett-Glaser 

Print crf-max with appropriate precision in SEI

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

 common/common.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/common/common.c b/common/common.c
index dec02b8..e4c4084 100644
--- a/common/common.c
+++ b/common/common.c
@@ -1257,7 +1257,7 @@ char *x264_param2string( x264_param_t *p, int b_res )
             s += sprintf( s, " vbv_maxrate=%d vbv_bufsize=%d",
                           p->rc.i_vbv_max_bitrate, p->rc.i_vbv_buffer_size );
             if( p->rc.i_rc_method == X264_RC_CRF )
-                s += sprintf( s, " crf-max=%f", p->rc.f_rf_constant_max );
+                s += sprintf( s, " crf-max=%.1f", p->rc.f_rf_constant_max );
         }
     }
     else if( p->rc.i_rc_method == X264_RC_CQP )



More information about the x264-devel mailing list