changeset 5896:242e10c13f89

Fix buggy extra header printing
author albeu
date Mon, 29 Apr 2002 13:31:17 +0000
parents e69d0434d92b
children 5f25f1f06c95
files libmpdemux/aviprint.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/aviprint.c	Mon Apr 29 09:53:30 2002 +0000
+++ b/libmpdemux/aviprint.c	Mon Apr 29 13:31:17 2002 +0000
@@ -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");
   }
 }