Mercurial > mplayer.hg
comparison libmpdemux/demux_mov.c @ 8105:057c9c3f3312
workaround for ms11 ima4
author | alex |
---|---|
date | Mon, 04 Nov 2002 20:36:51 +0000 |
parents | dc7565b29e0a |
children | bffdd162d034 |
comparison
equal
deleted
inserted
replaced
8104:6337f8858d3a | 8105:057c9c3f3312 |
---|---|
871 char2int(trak->stdata,32)+char2int(trak->stdata,28)/2) | 871 char2int(trak->stdata,32)+char2int(trak->stdata,28)/2) |
872 /char2int(trak->stdata,28); | 872 /char2int(trak->stdata,28); |
873 sh->wf->nBlockAlign=char2int(trak->stdata,36); | 873 sh->wf->nBlockAlign=char2int(trak->stdata,36); |
874 } else { | 874 } else { |
875 sh->wf->nAvgBytesPerSec=sh->wf->nChannels*sh->wf->wBitsPerSample*sh->wf->nSamplesPerSec/8; | 875 sh->wf->nAvgBytesPerSec=sh->wf->nChannels*sh->wf->wBitsPerSample*sh->wf->nSamplesPerSec/8; |
876 // workaround for ms11 ima4 | |
877 if (sh->format == 0x1100736d && trak->stdata_len >= 36) | |
878 sh->wf->nBlockAlign=char2int(trak->stdata,36); | |
876 } | 879 } |
877 // Selection: | 880 // Selection: |
878 if(demuxer->audio->id==-1 || demuxer->audio->id==priv->track_db){ | 881 if(demuxer->audio->id==-1 || demuxer->audio->id==priv->track_db){ |
879 // (auto)selected audio track: | 882 // (auto)selected audio track: |
880 demuxer->audio->id=priv->track_db; | 883 demuxer->audio->id=priv->track_db; |