Revert my old twos fix, it seems to break more files than it fixed.

If your file sound wrong, please uncomment and test


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12081 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
rtognimp 2004-03-28 22:03:37 +00:00
parent 4183d68f3d
commit d37c2fad12
1 changed files with 5 additions and 0 deletions

View File

@ -32,8 +32,13 @@ static int init(sh_audio_t *sh_audio)
case 0x736F7774: // 'twos'
case 0x74776F73: // 'swot'
if(sh_audio->samplesize==1) sh_audio->sample_format=AFMT_S8;
// Uncomment this if twos audio is broken for you
// (typically with movies made on sgi machines)
// This is just a workaround, the real bug is elsewhere
#if 0
sh_audio->ds->ss_div= sh_audio->samplesize;
sh_audio->ds->ss_mul= sh_audio->samplesize * sh_audio->channels;
#endif
break;
default: if(sh_audio->samplesize!=2) sh_audio->sample_format=AFMT_U8;
}