[FFmpeg-devel] [PATCH] avformat/mxfdec: signal channel layouts using the new channel layout api

Anton Khirnov anton at khirnov.net
Sat Mar 9 08:27:01 EET 2024


Quoting Marton Balint (2024-03-08 21:13:59)
> +    ret = av_channel_layout_retype(ch_layout, AV_CHANNEL_ORDER_NATIVE, AV_CHANNEL_LAYOUT_RETYPE_FLAG_LOSSLESS);
> +    if (ret == AVERROR(ENOSYS))
> +        ret = av_channel_layout_retype(ch_layout, AV_CHANNEL_ORDER_UNSPEC, AV_CHANNEL_LAYOUT_RETYPE_FLAG_LOSSLESS);

It might be useful to have an av_channel_layout_retype() flag (something
like AV_CHANNEL_LAYOUT_RETYPE_FLAG_CANONICALISE) that converts to the
simplest possible representation (not saying you need to add it right
now, it's just a note for future consideration).

-- 
Anton Khirnov


More information about the ffmpeg-devel mailing list