[vlc-commits] packetizer: mpegaudio: set layer on profile

Francois Cartegnie git at videolan.org
Fri Jan 19 17:38:19 CET 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Jan 19 17:31:11 2018 +0100| [1165f924c762ea3de6f8ff0c90ed4f57c4707037] | committer: Francois Cartegnie

packetizer: mpegaudio: set layer on profile

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

 modules/packetizer/mpegaudio.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/packetizer/mpegaudio.c b/modules/packetizer/mpegaudio.c
index 00c50a5c3d..9e6d357b3c 100644
--- a/modules/packetizer/mpegaudio.c
+++ b/modules/packetizer/mpegaudio.c
@@ -123,6 +123,7 @@ static uint8_t *GetOutBuffer( decoder_t *p_dec, block_t **pp_out_buffer )
         date_Set( &p_sys->end_date, p_sys->i_pts );
     }
 
+    p_dec->fmt_out.i_profile        = p_sys->i_layer;
     p_dec->fmt_out.audio.i_rate     = p_sys->i_rate;
     p_dec->fmt_out.audio.i_channels = p_sys->i_channels;
     p_dec->fmt_out.audio.i_frame_length = p_sys->i_frame_length;
@@ -387,8 +388,6 @@ static block_t *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" );



More information about the vlc-commits mailing list