From 21369b2318de4825b2fb87873d35d5fced6510b3 Mon Sep 17 00:00:00 2001 From: albeu Date: Mon, 29 Apr 2002 13:31:17 +0000 Subject: [PATCH] Fix buggy extra header printing git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5897 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/aviprint.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libmpdemux/aviprint.c b/libmpdemux/aviprint.c index 14de2b8a9d..61e75969c7 100644 --- a/libmpdemux/aviprint.c +++ b/libmpdemux/aviprint.c @@ -71,9 +71,10 @@ void print_wave_header(WAVEFORMATEX *h){ 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"); } }