Mercurial > mplayer.hg
comparison libmpdemux/aviprint.c @ 5896:242e10c13f89
Fix buggy extra header printing
author | albeu |
---|---|
date | Mon, 29 Apr 2002 13:31:17 +0000 |
parents | 3b836c55666c |
children | 1e47c2e7aa8e |
comparison
equal
deleted
inserted
replaced
5895:e69d0434d92b | 5896:242e10c13f89 |
---|---|
69 printf("mp3.nCodecDelay=%d\n",h2->nCodecDelay); | 69 printf("mp3.nCodecDelay=%d\n",h2->nCodecDelay); |
70 } | 70 } |
71 else if (h->cbSize > 0) | 71 else if (h->cbSize > 0) |
72 { | 72 { |
73 int i; | 73 int i; |
74 uint8_t* p = ((uint8_t*)h) + sizeof(WAVEFORMATEX); | |
74 printf("Unknown extra header dump: "); | 75 printf("Unknown extra header dump: "); |
75 for (i = 0; i < h->cbSize; i++) | 76 for (i = 0; i < h->cbSize; i++) |
76 printf("[%x] ", *(h+i)); | 77 printf("[%x] ", *(p+i)); |
77 printf("\n"); | 78 printf("\n"); |
78 } | 79 } |
79 } | 80 } |
80 | 81 |
81 | 82 |