]> git.videolan.org Git - x264.git/commitdiff
report version number in decimal instead of hex
authorLoren Merritt <pengvado@videolan.org>
Sat, 5 Mar 2005 00:37:25 +0000 (00:37 +0000)
committerLoren Merritt <pengvado@videolan.org>
Sat, 5 Mar 2005 00:37:25 +0000 (00:37 +0000)
git-svn-id: svn://svn.videolan.org/x264/trunk@151 df754926-b1dd-0310-bc7b-ec298dee348c

encoder/encoder.c
encoder/set.c
x264.c
x264.h

index 70b57a20dc35bbf519bc105b2e3e8d77ddf472c4..1e7552cdc760d09aab5b2eaa4ed1374c395142ab 100644 (file)
@@ -380,7 +380,7 @@ x264_t *x264_encoder_open   ( x264_param_t *param )
 
     h->param.i_bframe = x264_clip3( h->param.i_bframe, 0, X264_BFRAME_MAX );
     h->param.i_bframe_bias = x264_clip3( h->param.i_bframe_bias, -90, 100 );
-    h->param.b_bframe_pyramid = h->param.b_bframe_pyramid && h->param.i_bframe;
+    h->param.b_bframe_pyramid = h->param.b_bframe_pyramid && h->param.i_bframe > 1;
     h->frames.i_delay = h->param.i_bframe;
     h->frames.i_max_ref0 = h->param.i_frame_reference;
     h->frames.i_max_ref1 = h->param.b_bframe_pyramid ? 2
index f6e1b8792cf703528700ed3d412eddb4bb1c7aed..3fdca53fe514a1d35c23f28e421390b60c10e5d8 100644 (file)
@@ -379,7 +379,7 @@ void x264_sei_version_write( bs_t *s )
     };
     char version[256];
     int length;
-    sprintf( version, "x264 - core 0x%x - H.264/MPEG-4 AVC codec - Copyleft 2005 - http://www.videolan.org/x264.html",
+    sprintf( version, "x264 - core %d - H.264/MPEG-4 AVC codec - Copyleft 2005 - http://www.videolan.org/x264.html",
              X264_BUILD );
     length = strlen(version)+1+16;
 
diff --git a/x264.c b/x264.c
index 85dda950b113dd5399a322d60176f75f7e380bd3..d031eac26655f8429be0bb71cfd598c5c69357e2 100644 (file)
--- a/x264.c
+++ b/x264.c
@@ -98,7 +98,7 @@ int main( int argc, char **argv )
 static void Help( x264_param_t *defaults )
 {
     fprintf( stderr,
-             "x264 build:0x%4.4x\n"
+             "x264 build:%d\n"
              "Syntax: x264 [options] [-o out.h26l] in.yuv widthxheigh\n"
              "\n"
              "  -h, --help                  Print this help\n"
diff --git a/x264.h b/x264.h
index c4df922020e470de7efcaa966060f80c5d52ef6a..b15b806b5a3acabe4c7d351a1aa6dae635136dea 100644 (file)
--- a/x264.h
+++ b/x264.h
@@ -26,7 +26,7 @@
 
 #include <stdarg.h>
 
-#define X264_BUILD 0x0014
+#define X264_BUILD 20
 
 /* x264_t:
  *      opaque handler for decoder and encoder */