[vlc-commits] real demux: use VLC_FOURCC

Rafaël Carré git at videolan.org
Sat Jul 16 17:21:07 CEST 2011


vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Sat Jul 16 11:20:25 2011 -0400| [3ee380303ccdaee28b019cc7698f93b90ba56abf] | committer: Rafaël Carré

real demux: use VLC_FOURCC

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

 modules/demux/real.c |   11 +++--------
 1 files changed, 3 insertions(+), 8 deletions(-)

diff --git a/modules/demux/real.c b/modules/demux/real.c
index 40ff254..f3ae35e 100644
--- a/modules/demux/real.c
+++ b/modules/demux/real.c
@@ -1574,7 +1574,7 @@ static int CodecAudioParse( demux_t *p_demux, int i_tk_id, const uint8_t *p_data
         }
         break;
 
-    case VLC_FOURCC( 's','i','p','r' ):
+    case VLC_CODEC_SIPR:
         fmt.i_codec = VLC_CODEC_SIPR;
         if( i_flavor > 3 )
         {
@@ -1590,8 +1590,8 @@ static int CodecAudioParse( demux_t *p_demux, int i_tk_id, const uint8_t *p_data
         fmt.i_bitrate = fmt.audio.i_rate;
         msg_Dbg( p_demux, "    - sipr flavor=%i", i_flavor );
 
-    case VLC_FOURCC( 'c','o','o','k' ):
-    case VLC_FOURCC( 'a','t','r','c' ):
+    case VLC_CODEC_COOK:
+    case VLC_CODEC_ATRAC3:
         if( i_subpacket_size <= 0 || i_frame_size / i_subpacket_size <= 0 )
         {
             es_format_Clean( &fmt );
@@ -1602,11 +1602,6 @@ static int CodecAudioParse( demux_t *p_demux, int i_tk_id, const uint8_t *p_data
         else
             fmt.audio.i_blockalign = i_coded_frame_size;
 
-        if( fmt.i_codec == VLC_FOURCC( 'c','o','o','k' ) )
-            fmt.i_codec = VLC_CODEC_COOK;
-        else if( fmt.i_codec == VLC_FOURCC( 'a','t','r','c' ) )
-            fmt.i_codec = VLC_CODEC_ATRAC3;
-
         if( i_extra_codec > 0 )
         {
             fmt.p_extra = malloc( i_extra_codec );



More information about the vlc-commits mailing list