[Mplayer-cvslog] CVS: main/libmpcodecs ad_pcm.c,1.8,1.9

Roberto Togni CVS syncmail at mplayerhq.hu
Mon Mar 29 00:03:39 CEST 2004


CVS change done by Roberto Togni CVS

Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var2/tmp/cvs-serv7232

Modified Files:
	ad_pcm.c 
Log Message:
Revert my old twos fix, it seems to break more files than it fixed.
If your file sound wrong, please uncomment and test


Index: ad_pcm.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ad_pcm.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- ad_pcm.c	2 Dec 2003 22:44:17 -0000	1.8
+++ ad_pcm.c	28 Mar 2004 22:03:37 -0000	1.9
@@ -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;
   }




More information about the MPlayer-cvslog mailing list