[vlc-devel] [PATCH 1/2] aout_ChannelReorder: handle more case
Thomas Guillem
thomas at gllm.fr
Tue Jan 16 16:27:10 CET 2018
---
src/audio_output/common.c | 29 ++++++++++++++++++++++++-----
1 file changed, 24 insertions(+), 5 deletions(-)
diff --git a/src/audio_output/common.c b/src/audio_output/common.c
index f7dbc57557..c1f6d8d61b 100644
--- a/src/audio_output/common.c
+++ b/src/audio_output/common.c
@@ -329,11 +329,30 @@ do { \
{
switch( fourcc )
{
- case VLC_CODEC_U8: REORDER_TYPE(uint8_t); return;
- case VLC_CODEC_S16N: REORDER_TYPE(int16_t); return;
- case VLC_CODEC_FL32: REORDER_TYPE(float); return;
- case VLC_CODEC_S32N: REORDER_TYPE(int32_t); return;
- case VLC_CODEC_FL64: REORDER_TYPE(double); return;
+ case VLC_CODEC_S8:
+ case VLC_CODEC_U8:
+ REORDER_TYPE(uint8_t);
+ return;
+ case VLC_CODEC_U16L:
+ case VLC_CODEC_U16B:
+ case VLC_CODEC_S16L:
+ case VLC_CODEC_S16B:
+ REORDER_TYPE(int16_t);
+ return;
+ case VLC_CODEC_F32L:
+ case VLC_CODEC_F32B:
+ REORDER_TYPE(float);
+ return;
+ case VLC_CODEC_U32L:
+ case VLC_CODEC_U32B:
+ case VLC_CODEC_S32L:
+ case VLC_CODEC_S32B:
+ REORDER_TYPE(int32_t);
+ return;
+ case VLC_CODEC_F64L:
+ case VLC_CODEC_F64B:
+ REORDER_TYPE(double);
+ return;
}
}
--
2.11.0
More information about the vlc-devel
mailing list