[vlc-devel] [PATCH 1/6] audio_format_t.i_flavor -> es_format_t.i_profile

Rafaël Carré rafael.carre at gmail.com
Fri Jan 22 15:25:21 CET 2010


Other (audio or video) demux/codecs than real demux can use it
---
 include/vlc_es.h     |    2 +-
 modules/demux/real.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/vlc_es.h b/include/vlc_es.h
index 26c2f14..3c9260c 100644
--- a/include/vlc_es.h
+++ b/include/vlc_es.h
@@ -93,7 +93,6 @@ struct audio_format_t
     unsigned     i_bitspersample;
     unsigned     i_blockalign;
     uint8_t      i_channels; /* must be <=32 */
-    uint8_t      i_flavor;
 };
 
 /**
@@ -256,6 +255,7 @@ struct es_format_t
     subs_format_t  subs;      /**< description of subtitle format */
 
     unsigned int   i_bitrate; /**< bitrate of this ES */
+    int      i_profile;       /**< codec specific information (like real audio flavor, mpeg audio layer, h264 profile ...) */
 
     bool     b_packetized;  /**< wether the data is packetized (ie. not truncated) */
     int     i_extra;        /**< length in bytes of extra data pointer */
diff --git a/modules/demux/real.c b/modules/demux/real.c
index ec1313d..c752d76 100644
--- a/modules/demux/real.c
+++ b/modules/demux/real.c
@@ -1484,7 +1484,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'):
-        fmt.audio.i_flavor = i_flavor;
+        fmt.i_profile = i_flavor;
     case VLC_FOURCC('c','o','o','k'):
     case VLC_FOURCC('a','t','r','c'):
         if( i_subpacket_size <= 0 ||
-- 
1.6.3.3





More information about the vlc-devel mailing list