# HG changeset patch # User reimar # Date 1196521315 0 # Node ID f291ec948fcafae583f1e97b2d48ea362ee06a6e # Parent dbad71c68ed687ce8e89cb0efe4c15ea31749483 Get rid of annoying, space-wasting sizeof(uint32_t) diff -r dbad71c68ed6 -r f291ec948fca libmpdemux/demux_ogg.c --- 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; }