[FFmpeg-devel] [PATCH 043/281] cdxl: convert to new channel layout API

Anton Khirnov anton at khirnov.net
Wed Jan 26 15:53:53 EET 2022


Quoting James Almer (2022-01-13 02:50:05)
> 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/cdxl.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/libavformat/cdxl.c b/libavformat/cdxl.c
> index c42e0d3545..76dc1d18c9 100644
> --- a/libavformat/cdxl.c
> +++ b/libavformat/cdxl.c
> @@ -171,6 +171,7 @@ static int cdxl_read_packet(AVFormatContext *s, AVPacket *pkt)
>  
>      if (cdxl->read_chunk && audio_size) {
>          if (cdxl->audio_stream_index == -1) {
> +            int channels = !!(cdxl->header[1] & 0x10) + 1;

redundant after cba716f55e79ebb2db9627c6e3e11d6fc77ae737

-- 
Anton Khirnov


More information about the ffmpeg-devel mailing list