Mercurial > mplayer.hg
changeset 12080:1abbfe730adc
Revert my old twos fix, it seems to break more files than it fixed.
If your file sound wrong, please uncomment and test
author | rtognimp |
---|---|
date | Sun, 28 Mar 2004 22:03:37 +0000 |
parents | c931c69d2525 |
children | e34700c872ac |
files | libmpcodecs/ad_pcm.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/ad_pcm.c Sun Mar 28 21:18:02 2004 +0000 +++ b/libmpcodecs/ad_pcm.c Sun Mar 28 22:03:37 2004 +0000 @@ -32,8 +32,13 @@ 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; }