[FFmpeg-devel] [PATCH 090/281] lxfdec: convert to new channel layout API

Tomas Härdin tjoppen at acc.umu.se
Thu Jan 27 17:19:09 EET 2022


ons 2022-01-12 klockan 22:55 -0300 skrev James Almer:
> From: Vittorio Giovara <vittorio.giovara at gmail.com>
> 
> Signed-off-by: Vittorio Giovara <vittorio.giovara at gmail.com>
> Signed-off-by: James Almer <jamrial at gmail.com>
> ---
>  libavformat/lxfdec.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/libavformat/lxfdec.c b/libavformat/lxfdec.c
> index 7889abb2c9..9e0d265f6a 100644
> --- a/libavformat/lxfdec.c
> +++ b/libavformat/lxfdec.c
> @@ -281,7 +281,8 @@ static int lxf_read_header(AVFormatContext *s)
>  
>          st->codecpar->codec_type  = AVMEDIA_TYPE_AUDIO;
>          st->codecpar->sample_rate = LXF_SAMPLERATE;
> -        st->codecpar->channels    = lxf->channels;
> +        st->codecpar->ch_layout.order = AV_CHANNEL_ORDER_UNSPEC;
> +        st->codecpar->ch_layout.nb_channels = lxf->channels;
>  
>          avpriv_set_pts_info(st, 64, 1, st->codecpar->sample_rate);
>      }

Looks OK

/Tomas



More information about the ffmpeg-devel mailing list