Mercurial > mplayer.hg
changeset 25262:f1922d2b1925
Use correct printf length modifiers, fixes the following warnings:
ve_vfw.c: In function 'vfw_start_encoder':
ve_vfw.c:182: warning: format '%d' expects type 'int', but argument 2 has type 'long int'
ve_vfw.c:183: warning: format '%d' expects type 'int', but argument 2 has type 'long int'
ve_vfw.c:184: warning: format '%d' expects type 'int', but argument 2 has type 'long int'
ve_vfw.c:187: warning: format '%x' expects type 'unsigned int', but argument 2 has type 'long int'
ve_vfw.c:188: warning: format '%d' expects type 'int', but argument 2 has type 'long int'
ve_vfw.c:190: warning: format '%d' expects type 'int', but argument 2 has type 'long int'
ve_vfw.c:191: warning: format '%d' expects type 'int', but argument 2 has type 'long int'
ve_vfw.c:192: warning: format '%d' expects type 'int', but argument 2 has type 'long int'
ve_vfw.c:195: warning: format '%x' expects type 'unsigned int', but argument 2 has type 'long int'
ve_vfw.c:196: warning: format '%d' expects type 'int', but argument 2 has type 'long int'
ve_vfw.c:216: warning: format '%d' expects type 'int', but argument 4 has type 'long int'
ve_vfw.c:217: warning: format '%d' expects type 'int', but argument 4 has type 'long int'
ve_vfw.c:218: warning: format '%d' expects type 'int', but argument 4 has type 'long int'
ve_vfw.c:221: warning: format '%x' expects type 'unsigned int', but argument 4 has type 'long int'
ve_vfw.c:222: warning: format '%d' expects type 'int', but argument 4 has type 'long int'
author | diego |
---|---|
date | Mon, 03 Dec 2007 23:38:51 +0000 |
parents | 502ee332974f |
children | 96d0992c7920 |
files | libmpcodecs/ve_vfw.c |
diffstat | 1 files changed, 15 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/ve_vfw.c Mon Dec 03 21:45:43 2007 +0000 +++ b/libmpcodecs/ve_vfw.c Mon Dec 03 23:38:51 2007 +0000 @@ -179,21 +179,21 @@ // if( mp_msg_test(MSGT_WIN32,MSGL_V) ) { printf("Starting compression:\n"); printf(" Input format:\n"); - printf(" biSize %d\n", input_bih->biSize); - printf(" biWidth %d\n", input_bih->biWidth); - printf(" biHeight %d\n", input_bih->biHeight); + printf(" biSize %ld\n", input_bih->biSize); + printf(" biWidth %ld\n", input_bih->biWidth); + printf(" biHeight %ld\n", input_bih->biHeight); printf(" biPlanes %d\n", input_bih->biPlanes); printf(" biBitCount %d\n", input_bih->biBitCount); - printf(" biCompression 0x%x ('%.4s')\n", input_bih->biCompression, (char *)&input_bih->biCompression); - printf(" biSizeImage %d\n", input_bih->biSizeImage); + printf(" biCompression 0x%lx ('%.4s')\n", input_bih->biCompression, (char *)&input_bih->biCompression); + printf(" biSizeImage %ld\n", input_bih->biSizeImage); printf(" Output format:\n"); - printf(" biSize %d\n", output_bih->biSize); - printf(" biWidth %d\n", output_bih->biWidth); - printf(" biHeight %d\n", output_bih->biHeight); + printf(" biSize %ld\n", output_bih->biSize); + printf(" biWidth %ld\n", output_bih->biWidth); + printf(" biHeight %ld\n", output_bih->biHeight); printf(" biPlanes %d\n", output_bih->biPlanes); printf(" biBitCount %d\n", output_bih->biBitCount); - printf(" biCompression 0x%x ('%.4s')\n", output_bih->biCompression, (char *)&output_bih->biCompression); - printf(" biSizeImage %d\n", output_bih->biSizeImage); + printf(" biCompression 0x%lx ('%.4s')\n", output_bih->biCompression, (char *)&output_bih->biCompression); + printf(" biSizeImage %ld\n", output_bih->biSizeImage); // } output_bih->biWidth=input_bih->biWidth; @@ -213,13 +213,13 @@ } else mp_msg(MSGT_WIN32,MSGL_V,"ICCompressBegin OK\n"); mp_msg(MSGT_WIN32,MSGL_INFO," Output format after query/begin:\n"); - mp_msg(MSGT_WIN32,MSGL_INFO," biSize %d\n", output_bih->biSize); - mp_msg(MSGT_WIN32,MSGL_INFO," biWidth %d\n", output_bih->biWidth); - mp_msg(MSGT_WIN32,MSGL_INFO," biHeight %d\n", output_bih->biHeight); + mp_msg(MSGT_WIN32,MSGL_INFO," biSize %ld\n", output_bih->biSize); + mp_msg(MSGT_WIN32,MSGL_INFO," biWidth %ld\n", output_bih->biWidth); + mp_msg(MSGT_WIN32,MSGL_INFO," biHeight %ld\n", output_bih->biHeight); mp_msg(MSGT_WIN32,MSGL_INFO," biPlanes %d\n", output_bih->biPlanes); mp_msg(MSGT_WIN32,MSGL_INFO," biBitCount %d\n", output_bih->biBitCount); - mp_msg(MSGT_WIN32,MSGL_INFO," biCompression 0x%x ('%.4s')\n", output_bih->biCompression, (char *)&output_bih->biCompression); - mp_msg(MSGT_WIN32,MSGL_INFO," biSizeImage %d\n", output_bih->biSizeImage); + mp_msg(MSGT_WIN32,MSGL_INFO," biCompression 0x%lx ('%.4s')\n", output_bih->biCompression, (char *)&output_bih->biCompression); + mp_msg(MSGT_WIN32,MSGL_INFO," biSizeImage %ld\n", output_bih->biSizeImage); encoder_buf_size=input_bih->biSizeImage; encoder_buf=malloc(encoder_buf_size);