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

Roberto Togni CVS rtognimp at mplayerhq.hu
Tue Dec 2 23:44:45 CET 2003


Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv20026

Modified Files:
	ad_pcm.c 
Log Message:
twos 16bit 2 channels fixed.


Index: ad_pcm.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ad_pcm.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- ad_pcm.c	4 Nov 2002 20:28:21 -0000	1.7
+++ ad_pcm.c	2 Dec 2003 22:44:17 -0000	1.8
@@ -32,6 +32,8 @@
     case 0x736F7774: // 'twos'
     case 0x74776F73: // 'swot'
        if(sh_audio->samplesize==1) sh_audio->sample_format=AFMT_S8;
+       sh_audio->ds->ss_div= sh_audio->samplesize;
+       sh_audio->ds->ss_mul= sh_audio->samplesize * sh_audio->channels;
        break;
     default: if(sh_audio->samplesize!=2) sh_audio->sample_format=AFMT_U8;
   }



More information about the MPlayer-cvslog mailing list