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
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to