mirror of https://github.com/mpv-player/mpv
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:
parent
3dbe585e6f
commit
21369b2318
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue