[vlc-devel] [PATCH 5/6] mpga decoder: modify input ES format with layer

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


---
 modules/codec/mpeg_audio.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/modules/codec/mpeg_audio.c b/modules/codec/mpeg_audio.c
index 6815abf..ac31537 100644
--- a/modules/codec/mpeg_audio.c
+++ b/modules/codec/mpeg_audio.c
@@ -285,6 +285,8 @@ static void *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
                                             &p_sys->i_max_frame_size,
                                             &p_sys->i_layer );
 
+            p_dec->fmt_in.i_profile = p_sys->i_layer;
+
             if( p_sys->i_frame_size == -1 )
             {
                 msg_Dbg( p_dec, "emulated startcode" );
@@ -342,6 +344,8 @@ static void *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
                                               &i_next_max_frame_size,
                                               &i_next_layer );
 
+                p_dec->fmt_in.i_profile = p_sys->i_layer;
+
                 /* Free bitrate only */
                 if( p_sys->i_bit_rate == 0 && i_next_frame_size == -1 )
                 {
-- 
1.6.3.3





More information about the vlc-devel mailing list