mirror of
https://github.com/mpv-player/mpv
synced 2025-01-24 19:37:30 +01:00
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);
|
||||
/* the following stuff is audio related */
|
||||
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:
|
||||
x/=char2int(trak->stdata,28); // samples/packet
|
||||
// x*=char2int(trak->stdata,32); // bytes/packet
|
||||
|
Loading…
Reference in New Issue
Block a user