[vlc-commits] packetizer: mpegaudio: set layer on profile
Francois Cartegnie
git at videolan.org
Fri Jan 19 18:44:16 CET 2018
vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Jan 19 17:31:11 2018 +0100| [e0b5c051a6ee73275c41f13414cf24ab90fa647f] | committer: Jean-Baptiste Kempf
packetizer: mpegaudio: set layer on profile
(cherry picked from commit 1165f924c762ea3de6f8ff0c90ed4f57c4707037)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=e0b5c051a6ee73275c41f13414cf24ab90fa647f
---
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