changeset 25205:f291ec948fca

Get rid of annoying, space-wasting sizeof(uint32_t)
author reimar
date Sat, 01 Dec 2007 15:01:55 +0000
parents dbad71c68ed6
children 2d6575d7bc49
files libmpdemux/demux_ogg.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_ogg.c	Sat Dec 01 15:00:22 2007 +0000
+++ b/libmpdemux/demux_ogg.c	Sat Dec 01 15:01:55 2007 +0000
@@ -1248,7 +1248,7 @@
   int plen;
 
   /// Check that the cbSize is big enough for the following reads
-  if(sh_audio->wf->cbSize < 22+3*sizeof(uint32_t)) {
+  if(sh_audio->wf->cbSize < 22+3*4) {
     mp_msg(MSGT_DEMUX,MSGL_ERR,"AVI Ogg : Initial audio header is too small !!!!!\n");
     goto fallback;
   }
@@ -1261,7 +1261,7 @@
 //  printf("\n!!!!!! hdr sizes: %d %d %d   \n",hdrsizes[0],hdrsizes[1],hdrsizes[2]);
 
   /// Check the size
-  if(sh_audio->wf->cbSize < 22+3*sizeof(uint32_t)+hdrsizes[0]+hdrsizes[1] + hdrsizes[2]) {
+  if(sh_audio->wf->cbSize < 22+3*4+hdrsizes[0]+hdrsizes[1] + hdrsizes[2]) {
     mp_msg(MSGT_DEMUX,MSGL_ERR,"AVI Ogg : Audio header is too small !!!!!\n");
     goto fallback;
   }