mirror of
https://github.com/mpv-player/mpv
synced 2025-03-05 05:37:37 +00:00
Get rid of annoying, space-wasting sizeof(uint32_t)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25233 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
18499a94d9
commit
8da10f7b0f
@ -1248,7 +1248,7 @@ demuxer_t* init_avi_with_ogg(demuxer_t* demuxer) {
|
||||
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 @@ demuxer_t* init_avi_with_ogg(demuxer_t* demuxer) {
|
||||
// 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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user