# HG changeset patch # User albeu # Date 1020087077 0 # Node ID 242e10c13f89ecec5a43030d4a4cfd2d823409a8 # Parent e69d0434d92b7b7e68858514094181da393a78d0 Fix buggy extra header printing diff -r e69d0434d92b -r 242e10c13f89 libmpdemux/aviprint.c --- 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"); } }