Mercurial > mplayer.hg
comparison libmpdemux/demux_mov.c @ 6718:872235b50330
workaround for empty version1 audio headers (bugreport by Sascha Sommer)
author | arpi |
---|---|
date | Fri, 12 Jul 2002 13:50:35 +0000 |
parents | b802dd0812f1 |
children | 0ab18e1433c4 |
comparison
equal
deleted
inserted
replaced
6717:9d34c286f0ba | 6718:872235b50330 |
---|---|
1348 else | 1348 else |
1349 x=trak->chunks[trak->pos].size; | 1349 x=trak->chunks[trak->pos].size; |
1350 // printf("X = %d\n", x); | 1350 // printf("X = %d\n", x); |
1351 /* the following stuff is audio related */ | 1351 /* the following stuff is audio related */ |
1352 if (trak->type == MOV_TRAK_AUDIO){ | 1352 if (trak->type == MOV_TRAK_AUDIO){ |
1353 if(trak->stdata_len>=44 && trak->stdata[9]>=1){ | 1353 if(trak->stdata_len>=44 && trak->stdata[9]>=1 && char2int(trak->stdata,28)>0){ |
1354 // stsd version 1 - we have audio compression ratio info: | 1354 // stsd version 1 - we have audio compression ratio info: |
1355 x/=char2int(trak->stdata,28); // samples/packet | 1355 x/=char2int(trak->stdata,28); // samples/packet |
1356 // x*=char2int(trak->stdata,32); // bytes/packet | 1356 // x*=char2int(trak->stdata,32); // bytes/packet |
1357 x*=char2int(trak->stdata,36); // bytes/frame | 1357 x*=char2int(trak->stdata,36); // bytes/frame |
1358 } else { | 1358 } else { |