Mercurial > mplayer.hg
changeset 6718:872235b50330
workaround for empty version1 audio headers (bugreport by Sascha Sommer)
author | arpi |
---|---|
date | Fri, 12 Jul 2002 13:50:35 +0000 |
parents | 9d34c286f0ba |
children | 5291d74a60c9 |
files | libmpdemux/demux_mov.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_mov.c Fri Jul 12 10:27:08 2002 +0000 +++ b/libmpdemux/demux_mov.c Fri Jul 12 13:50:35 2002 +0000 @@ -1350,7 +1350,7 @@ // 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