Commit c47bb1ff authored by Loren Merritt's avatar Loren Merritt

report version number in decimal instead of hex


git-svn-id: svn://svn.videolan.org/x264/trunk@151 df754926-b1dd-0310-bc7b-ec298dee348c
parent 91536acd
......@@ -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
......
......@@ -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;
......
......@@ -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"
......
......@@ -26,7 +26,7 @@
#include <stdarg.h>
#define X264_BUILD 0x0014
#define X264_BUILD 20
/* x264_t:
* opaque handler for decoder and encoder */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment