[vlc-devel] [PATCH 5/6] mpga decoder: modify input ES format with layer
Laurent Aimar
fenrir at via.ecp.fr
Fri Jan 22 20:39:16 CET 2010
Hi,
On Fri, Jan 22, 2010, Rafaël Carré wrote:
> ---
> 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" );
Ok.
> @@ -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;
> +
This one should be removed. It is useless as the value is already set by the
previous one (and using i_next_layer would be wrong as it applies to the next
frame).
--
fenrir
More information about the vlc-devel
mailing list