[vlc-commits] remap: support U8 because we can
Rémi Denis-Courmont
git at videolan.org
Fri Dec 21 22:29:29 CET 2012
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Dec 21 23:21:41 2012 +0200| [d9b33ea5c8569f5d2258ef49f07cbb67dad7cb7a] | committer: Rémi Denis-Courmont
remap: support U8 because we can
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d9b33ea5c8569f5d2258ef49f07cbb67dad7cb7a
---
modules/audio_filter/channel_mixer/remap.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/modules/audio_filter/channel_mixer/remap.c b/modules/audio_filter/channel_mixer/remap.c
index e3aec83..5ee9190 100644
--- a/modules/audio_filter/channel_mixer/remap.c
+++ b/modules/audio_filter/channel_mixer/remap.c
@@ -214,6 +214,7 @@ static void RemapAdd##name( filter_t *p_filter, \
} \
}
+DEFINE_REMAP( U8, uint8_t )
DEFINE_REMAP( S16N, int16_t )
DEFINE_REMAP( S32N, int32_t )
DEFINE_REMAP( FL32, float )
@@ -227,6 +228,8 @@ static inline remap_fun_t GetRemapFun( audio_format_t *p_format, bool b_add )
{
switch( p_format->i_format )
{
+ case VLC_CODEC_U8:
+ return RemapAddU8;
case VLC_CODEC_S16N:
return RemapAddS16N;
case VLC_CODEC_S32N:
@@ -241,6 +244,8 @@ static inline remap_fun_t GetRemapFun( audio_format_t *p_format, bool b_add )
{
switch( p_format->i_format )
{
+ case VLC_CODEC_U8:
+ return RemapCopyU8;
case VLC_CODEC_S16N:
return RemapCopyS16N;
case VLC_CODEC_S32N:
More information about the vlc-commits
mailing list