Commit e0b5c051 authored by François Cartegnie's avatar François Cartegnie 🤞 Committed by Jean-Baptiste Kempf

packetizer: mpegaudio: set layer on profile

(cherry picked from commit 1165f924)
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 7fe584a0
......@@ -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" );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment