Mercurial > mplayer.hg
comparison libmpdemux/demux_ogg.c @ 25204:dbad71c68ed6
Bigendian fix for ogg in AVI
author | reimar |
---|---|
date | Sat, 01 Dec 2007 15:00:22 +0000 |
parents | 36b9262aaa0f |
children | f291ec948fca |
comparison
equal
deleted
inserted
replaced
25203:36b9262aaa0f | 25204:dbad71c68ed6 |
---|---|
1252 mp_msg(MSGT_DEMUX,MSGL_ERR,"AVI Ogg : Initial audio header is too small !!!!!\n"); | 1252 mp_msg(MSGT_DEMUX,MSGL_ERR,"AVI Ogg : Initial audio header is too small !!!!!\n"); |
1253 goto fallback; | 1253 goto fallback; |
1254 } | 1254 } |
1255 /// Get the size of the 3 header packet | 1255 /// Get the size of the 3 header packet |
1256 extradata += 22; | 1256 extradata += 22; |
1257 memcpy(hdrsizes, extradata, 3*sizeof(uint32_t)); | 1257 for (i = 0; i < 3; i++) { |
1258 extradata += 3*sizeof(uint32_t); | 1258 hdrsizes[i] = AV_RL32(extradata); |
1259 extradata += 4; | |
1260 } | |
1259 // printf("\n!!!!!! hdr sizes: %d %d %d \n",hdrsizes[0],hdrsizes[1],hdrsizes[2]); | 1261 // printf("\n!!!!!! hdr sizes: %d %d %d \n",hdrsizes[0],hdrsizes[1],hdrsizes[2]); |
1260 | 1262 |
1261 /// Check the size | 1263 /// Check the size |
1262 if(sh_audio->wf->cbSize < 22+3*sizeof(uint32_t)+hdrsizes[0]+hdrsizes[1] + hdrsizes[2]) { | 1264 if(sh_audio->wf->cbSize < 22+3*sizeof(uint32_t)+hdrsizes[0]+hdrsizes[1] + hdrsizes[2]) { |
1263 mp_msg(MSGT_DEMUX,MSGL_ERR,"AVI Ogg : Audio header is too small !!!!!\n"); | 1265 mp_msg(MSGT_DEMUX,MSGL_ERR,"AVI Ogg : Audio header is too small !!!!!\n"); |