summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-12-03 23:38:51 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-12-03 23:38:51 +0000
commitfe27bf007ba98da826eb146404eea09610aecf23 (patch)
treeb467021cb70e79a349a805f73d9a4a2e417ebf7d /libmpcodecs
parent2ac12d82d82b85bb3a59e90d91d712a18e561395 (diff)
downloadmpv-fe27bf007ba98da826eb146404eea09610aecf23.tar.bz2
mpv-fe27bf007ba98da826eb146404eea09610aecf23.tar.xz
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' git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25290 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/ve_vfw.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/libmpcodecs/ve_vfw.c b/libmpcodecs/ve_vfw.c
index 2b54fbaedd..414cb6cf07 100644
--- a/libmpcodecs/ve_vfw.c
+++ b/libmpcodecs/ve_vfw.c
@@ -179,21 +179,21 @@ static int vfw_start_encoder(BITMAPINFOHEADER *input_bih, BITMAPINFOHEADER *outp
// 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 @@ static int vfw_start_encoder(BITMAPINFOHEADER *input_bih, BITMAPINFOHEADER *outp
} 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);