From 8d8026ed487c4daf93340937d15e94d113b9a8c4 Mon Sep 17 00:00:00 2001 From: arpi Date: Sat, 6 Jul 2002 15:14:32 +0000 Subject: fixed endless 'unknown chunk' and doublespeed ima4 audio bugs git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6656 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/demux_mov.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libmpdemux/demux_mov.c') diff --git a/libmpdemux/demux_mov.c b/libmpdemux/demux_mov.c index 99a43b5984..40a8542e27 100644 --- a/libmpdemux/demux_mov.c +++ b/libmpdemux/demux_mov.c @@ -873,11 +873,14 @@ static void lschunks(demuxer_t* demuxer,int level,off_t endpos,mov_track_t* trak mp4_free_esds(&esds); // freeup esds mem } break; + case 0: + break; default: mp_msg(MSGT_DEMUX, MSGL_INFO, "MOV: Found unknown movie atom %c%c%c%c (%d)!\n", trak->stdata[pos+4],trak->stdata[pos+5],trak->stdata[pos+6],trak->stdata[pos+7], atom_len); } + if(atom_len<8) break; pos+=atom_len; // printf("pos=%d max=%d\n",pos,trak->stdata_len); } @@ -1302,8 +1305,8 @@ if(trak->samplesize){ if(trak->stdata_len>=44 && trak->stdata[9]>=1){ // stsd version 1 - we have audio compression ratio info: x/=char2int(trak->stdata,28); // samples/packet - x*=char2int(trak->stdata,32); // bytes/packet -// x*=char2int(trak->stdata,36); // bytes/frame +// x*=char2int(trak->stdata,32); // bytes/packet + x*=char2int(trak->stdata,36); // bytes/frame } else { if(ds->ss_div!=1 || ds->ss_mul!=1){ // workaround for buggy files like 7up-high-traffic-areas.mov, -- cgit v1.2.3