summaryrefslogtreecommitdiffstats
path: root/libaf/af_channels.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-07-29 16:23:16 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2004-07-29 16:23:16 +0000
commit58ce85f7961fe40b2f807bc6ec37d1d79dbb6637 (patch)
tree6a1dc4ff1aa668bc50357f10789d7d3657d7c9ef /libaf/af_channels.c
parent41508ab12eef3858965702b5fd9ac615668b9a82 (diff)
downloadmpv-58ce85f7961fe40b2f807bc6ec37d1d79dbb6637.tar.bz2
mpv-58ce85f7961fe40b2f807bc6ec37d1d79dbb6637.tar.xz
support for 24 bit audio
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12914 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libaf/af_channels.c')
-rw-r--r--libaf/af_channels.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/libaf/af_channels.c b/libaf/af_channels.c
index 7849aa783a..acbb63a163 100644
--- a/libaf/af_channels.c
+++ b/libaf/af_channels.c
@@ -49,6 +49,21 @@ static void copy(void* in, void* out, int ins, int inos,int outs, int outos, int
}
break;
}
+ case 3:{
+ int8_t* tin = (int8_t*)in;
+ int8_t* tout = (int8_t*)out;
+ tin += 3 * inos;
+ tout += 3 * outos;
+ len = len / ( 3 * ins);
+ while (len--) {
+ tout[0] = tin[0];
+ tout[1] = tin[1];
+ tout[2] = tin[2];
+ tin += 3 * ins;
+ tout += 3 * outs;
+ }
+ break;
+ }
case 4:{
int32_t* tin = (int32_t*)in;
int32_t* tout = (int32_t*)out;