Fix buggy extra header printing

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5897 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
albeu 2002-04-29 13:31:17 +00:00
parent 3dbe585e6f
commit 21369b2318
1 changed files with 2 additions and 1 deletions

View File

@ -71,9 +71,10 @@ void print_wave_header(WAVEFORMATEX *h){
else if (h->cbSize > 0) else if (h->cbSize > 0)
{ {
int i; int i;
uint8_t* p = ((uint8_t*)h) + sizeof(WAVEFORMATEX);
printf("Unknown extra header dump: "); printf("Unknown extra header dump: ");
for (i = 0; i < h->cbSize; i++) for (i = 0; i < h->cbSize; i++)
printf("[%x] ", *(h+i)); printf("[%x] ", *(p+i));
printf("\n"); printf("\n");
} }
} }