Mercurial > mplayer.hg
diff libmpdemux/aviprint.c @ 32111:7c8d240d37a6
Replace sizeof(type)
author | reimar |
---|---|
date | Sun, 12 Sep 2010 13:26:39 +0000 |
parents | 6ca16928b1cc |
children | a93891202051 |
line wrap: on
line diff
--- a/libmpdemux/aviprint.c Sun Sep 12 13:14:18 2010 +0000 +++ b/libmpdemux/aviprint.c Sun Sep 12 13:26:39 2010 +0000 @@ -117,12 +117,12 @@ mp_msg(MSGT_HEADER, verbose_level, " biBitCount %d\n", h->biBitCount); mp_msg(MSGT_HEADER, verbose_level, " biCompression %d='%.4s'\n", h->biCompression, (char *)&h->biCompression); mp_msg(MSGT_HEADER, verbose_level, " biSizeImage %d\n", h->biSizeImage); - if (h->biSize > sizeof(BITMAPINFOHEADER)) + if (h->biSize > sizeof(*h)) { int i; uint8_t* p = (uint8_t*)(h + 1); mp_msg(MSGT_HEADER, verbose_level, "Unknown extra header dump: "); - for (i = 0; i < h->biSize-sizeof(BITMAPINFOHEADER); i++) + for (i = 0; i < h->biSize-sizeof(*h); i++) mp_msg(MSGT_HEADER, verbose_level, "[%x] ", *(p+i)); mp_msg(MSGT_HEADER, verbose_level, "\n"); }