[vlc-commits] Remove "pcm " pseudo-codec, synonymous with "araw"

Rémi Denis-Courmont git at videolan.org
Fri Apr 12 19:12:37 CEST 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Apr 12 20:12:19 2013 +0300| [613bbb838180c21e1103b9577038607a916b3155] | committer: Rémi Denis-Courmont

Remove "pcm " pseudo-codec, synonymous with "araw"

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=613bbb838180c21e1103b9577038607a916b3155
---

 include/vlc_codecs.h |    2 +-
 modules/codec/araw.c |    1 -
 modules/demux/wav.c  |    2 --
 src/misc/fourcc.c    |    3 +--
 4 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/include/vlc_codecs.h b/include/vlc_codecs.h
index 0fdf690..f2b8daf 100644
--- a/include/vlc_codecs.h
+++ b/include/vlc_codecs.h
@@ -433,7 +433,7 @@ static const struct
 }
 sub_format_tag_to_fourcc[] =
 {
-    { _KSDATAFORMAT_SUBTYPE_PCM_, VLC_FOURCC( 'p', 'c', 'm', ' ' ), "PCM" },
+    { _KSDATAFORMAT_SUBTYPE_PCM_, VLC_FOURCC( 'a', 'r', 'a', 'w' ), "PCM" },
     { _KSDATAFORMAT_SUBTYPE_UNKNOWN_, VLC_FOURCC( 'u', 'n', 'd', 'f' ), "Unknown" }
 };
 
diff --git a/modules/codec/araw.c b/modules/codec/araw.c
index 34e4b4c..b8064ef 100644
--- a/modules/codec/araw.c
+++ b/modules/codec/araw.c
@@ -111,7 +111,6 @@ static int DecoderOpen( vlc_object_t *p_this )
     switch( p_dec->fmt_in.i_codec )
     {
     case VLC_FOURCC('a','r','a','w'):
-    case VLC_FOURCC('p','c','m',' '):
     case VLC_FOURCC('a','f','l','t'):
     /* _signed_ big endian samples (mov) */
     case VLC_FOURCC('t','w','o','s'):
diff --git a/modules/demux/wav.c b/modules/demux/wav.c
index d2be174..6aefc92 100644
--- a/modules/demux/wav.c
+++ b/modules/demux/wav.c
@@ -268,7 +268,6 @@ static int Open( vlc_object_t * p_this )
     if( p_sys->i_channel_mask )
     {
         if( p_sys->fmt.i_codec == VLC_FOURCC('a','r','a','w') ||
-            p_sys->fmt.i_codec == VLC_FOURCC('p','c','m',' ') ||
             p_sys->fmt.i_codec == VLC_FOURCC('a','f','l','t') )
             p_sys->i_chans_to_reorder =
                 aout_CheckChannelReorder( pi_channels_in, NULL,
@@ -312,7 +311,6 @@ static int Open( vlc_object_t * p_this )
     case VLC_FOURCC( 'u', 'l', 'a', 'w' ):
     case VLC_CODEC_ALAW:
     case VLC_CODEC_MULAW:
-    case VLC_FOURCC( 'p', 'c', 'm', ' ' ):
         if( FrameInfo_PCM( &p_sys->i_frame_size, &p_sys->i_frame_samples,
                            &p_sys->fmt ) )
             goto error;
diff --git a/src/misc/fourcc.c b/src/misc/fourcc.c
index 9b6073b..e391260 100644
--- a/src/misc/fourcc.c
+++ b/src/misc/fourcc.c
@@ -1513,8 +1513,7 @@ vlc_fourcc_t vlc_fourcc_GetCodecAudio( vlc_fourcc_t i_fourcc, int i_bits )
             return 0;
         }
     }
-    else if( i_fourcc == VLC_FOURCC( 'a', 'r', 'a', 'w' ) ||
-             i_fourcc == VLC_FOURCC( 'p', 'c', 'm', ' ' ) )
+    else if( i_fourcc == VLC_FOURCC( 'a', 'r', 'a', 'w' ) )
     {
         switch( i_bytes )
         {



More information about the vlc-commits mailing list