[MPlayer-cvslog] r32774 - trunk/TOOLS/asfinfo.c
siretart
subversion at mplayerhq.hu
Sun Jan 9 21:02:46 CET 2011
Author: siretart
Date: Sun Jan 9 21:02:45 2011
New Revision: 32774
Log:
Fix printf format string warning
fixes this warning:
asfinfo.c: In function 'print_video_header':
asfinfo.c:158: warning: format '%.4s' expects type 'char *', but argument 3 has type 'long int *'
Modified:
trunk/TOOLS/asfinfo.c
Modified: trunk/TOOLS/asfinfo.c
==============================================================================
--- trunk/TOOLS/asfinfo.c Sun Jan 9 19:47:46 2011 (r32773)
+++ trunk/TOOLS/asfinfo.c Sun Jan 9 21:02:45 2011 (r32774)
@@ -155,7 +155,7 @@ static void print_video_header(BITMAPINF
printf(" biHeight %ld\n", h->biHeight);
printf(" biPlanes %d\n", h->biPlanes);
printf(" biBitCount %d\n", h->biBitCount);
- printf(" biCompression %ld='%.4s'\n", h->biCompression, &h->biCompression);
+ printf(" biCompression %ld='%.4s'\n", h->biCompression, (const char*)&h->biCompression);
printf(" biSizeImage %ld\n", h->biSizeImage);
printf("===========================\n");
}
More information about the MPlayer-cvslog
mailing list