[Mplayer-cvslog] CVS: main/libmpdemux aviprint.c,1.12,1.13

Alban Bedel CVS albeu at mplayerhq.hu
Mon Apr 29 15:31:29 CEST 2002


Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv19940/libmpdemux

Modified Files:
	aviprint.c 
Log Message:
Fix buggy extra header printing


Index: aviprint.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/aviprint.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- aviprint.c	21 Apr 2002 10:27:29 -0000	1.12
+++ aviprint.c	29 Apr 2002 13:31:17 -0000	1.13
@@ -71,9 +71,10 @@
   else if (h->cbSize > 0)
   {
     int i;
+    uint8_t* p = ((uint8_t*)h) + sizeof(WAVEFORMATEX);
     printf("Unknown extra header dump: ");
     for (i = 0; i < h->cbSize; i++)
-	printf("[%x] ", *(h+i));
+	printf("[%x] ", *(p+i));
     printf("\n");
   }
 }




More information about the MPlayer-cvslog mailing list