mirror of https://github.com/mpv-player/mpv
workaround for empty version1 audio headers (bugreport by Sascha Sommer)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6719 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
4b56ecf019
commit
c15f24ba60
|
@ -1350,7 +1350,7 @@ if(trak->samplesize){
|
||||||
// printf("X = %d\n", x);
|
// printf("X = %d\n", x);
|
||||||
/* the following stuff is audio related */
|
/* the following stuff is audio related */
|
||||||
if (trak->type == MOV_TRAK_AUDIO){
|
if (trak->type == MOV_TRAK_AUDIO){
|
||||||
if(trak->stdata_len>=44 && trak->stdata[9]>=1){
|
if(trak->stdata_len>=44 && trak->stdata[9]>=1 && char2int(trak->stdata,28)>0){
|
||||||
// stsd version 1 - we have audio compression ratio info:
|
// stsd version 1 - we have audio compression ratio info:
|
||||||
x/=char2int(trak->stdata,28); // samples/packet
|
x/=char2int(trak->stdata,28); // samples/packet
|
||||||
// x*=char2int(trak->stdata,32); // bytes/packet
|
// x*=char2int(trak->stdata,32); // bytes/packet
|
||||||
|
|
Loading…
Reference in New Issue