[Mplayer-cvslog] CVS: main/libmpcodecs ad_pcm.c,1.10,1.11

Reimar Döffinger CVS syncmail at mplayerhq.hu
Sun May 16 12:49:02 CEST 2004


CVS change done by Reimar Döffinger CVS

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

Modified Files:
	ad_pcm.c 
Log Message:
support for 24 bit pcm/wav files


Index: ad_pcm.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ad_pcm.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- ad_pcm.c	8 May 2004 23:41:13 -0000	1.10
+++ ad_pcm.c	16 May 2004 10:48:59 -0000	1.11
@@ -4,6 +4,7 @@
 
 #include "config.h"
 #include "ad_internal.h"
+#include "../libaf/af_format.h"
 
 static ad_info_t info = 
 {
@@ -29,6 +30,9 @@
        switch (sh_audio->samplesize) {
          case 1: sh_audio->sample_format=AFMT_U8; break;
          case 2: sh_audio->sample_format=AFMT_S16_LE; break;
+         case 3: sh_audio->sample_format=AFMT_AF_FLAGS | AF_FORMAT_I |
+                   AF_FORMAT_LE | AF_FORMAT_SI;
+           break;
          case 4: sh_audio->sample_format=AFMT_S32_LE; break;
        }
        break;




More information about the MPlayer-cvslog mailing list