[vlc-devel] [PATCH 19/24] avcodec: map PCM_S16LE_PLANAR

Daniel Verkamp daniel at drv.nu
Fri Jun 20 08:25:20 CEST 2014


Sample:
http://fate-suite.libav.org/ea-mad/xeasport.mad
---
 include/vlc_fourcc.h           | 1 +
 modules/codec/avcodec/fourcc.c | 2 +-
 src/misc/fourcc.c              | 2 ++
 3 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/include/vlc_fourcc.h b/include/vlc_fourcc.h
index 825a049..cc23bbd0 100644
--- a/include/vlc_fourcc.h
+++ b/include/vlc_fourcc.h
@@ -395,6 +395,7 @@
 #define VLC_CODEC_S8                         VLC_FOURCC('s','8',' ',' ')
 #define VLC_CODEC_U8                         VLC_FOURCC('u','8',' ',' ')
 #define VLC_CODEC_S16L                       VLC_FOURCC('s','1','6','l')
+#define VLC_CODEC_S16L_PLANAR                VLC_FOURCC('s','1','l','p')
 #define VLC_CODEC_S16B                       VLC_FOURCC('s','1','6','b')
 #define VLC_CODEC_U16L                       VLC_FOURCC('u','1','6','l')
 #define VLC_CODEC_U16B                       VLC_FOURCC('u','1','6','b')
diff --git a/modules/codec/avcodec/fourcc.c b/modules/codec/avcodec/fourcc.c
index 639138a..a559eed 100644
--- a/modules/codec/avcodec/fourcc.c
+++ b/modules/codec/avcodec/fourcc.c
@@ -305,7 +305,7 @@ static const struct
     { VLC_CODEC_U24B, AV_CODEC_ID_PCM_U24BE, AUDIO_ES },
     { VLC_CODEC_S24DAUD, AV_CODEC_ID_PCM_S24DAUD, AUDIO_ES },
     /* AV_CODEC_ID_PCM_ZORK */
-    /* AV_CODEC_ID_PCM_S16LE_PLANAR */
+    { VLC_CODEC_S16L_PLANAR, AV_CODEC_ID_PCM_S16LE_PLANAR, AUDIO_ES },
     /* AV_CODEC_ID_PCM_DVD */
     { VLC_CODEC_F32B, AV_CODEC_ID_PCM_F32BE, AUDIO_ES },
     { VLC_CODEC_F32L, AV_CODEC_ID_PCM_F32LE, AUDIO_ES },
diff --git a/src/misc/fourcc.c b/src/misc/fourcc.c
index 69f04bf..cba9422 100644
--- a/src/misc/fourcc.c
+++ b/src/misc/fourcc.c
@@ -1406,6 +1406,8 @@ static const staticentry_t p_list_audio[] = {
     B(VLC_CODEC_S16L, "PCM S16 LE"),
         A("s16l"),
 
+    B(VLC_CODEC_S16L_PLANAR, "PCM S16 LE planar"),
+
     B(VLC_CODEC_S16B, "PCM S16 BE"),
         A("s16b"),
 
-- 
2.0.0




More information about the vlc-devel mailing list