[MPlayer-cvslog] r25290 - trunk/libmpcodecs/ve_vfw.c
diego
subversion at mplayerhq.hu
Tue Dec 4 00:38:51 CET 2007
Author: diego
Date: Tue Dec 4 00:38:51 2007
New Revision: 25290
Log:
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'
Modified:
trunk/libmpcodecs/ve_vfw.c
Modified: trunk/libmpcodecs/ve_vfw.c
==============================================================================
--- trunk/libmpcodecs/ve_vfw.c (original)
+++ trunk/libmpcodecs/ve_vfw.c Tue Dec 4 00:38:51 2007
@@ -179,21 +179,21 @@ static int vfw_start_encoder(BITMAPINFOH
// 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(BITMAPINFOH
} 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);
More information about the MPlayer-cvslog
mailing list