[FFmpeg-devel] [PATCH] Set native order for wav channel layouts up until 8 channels.

Marton Balint cus at passwd.hu
Fri Feb 23 23:11:06 EET 2024



On Fri, 23 Feb 2024, Romain Beauxis wrote:

> The new default channel layout for the various RIFF/WAV decoders is not
> backward compatible.
>
> Historically, most decoders will expect the channel layouts to follow
> the native layout up-to a reasonable number of channels.
>
> Additionally, non-native layouts are causing troubles with filters
> chaining.
>
> This PR changes the default channel layout reported by RIFF/WAV decoders
> to default to the native layout when the number of channels is up-to 8.
>
> The logic for these changes is the same as the logic for the vorbis/opus
> decoders.

For Vorbis the channel layout is in the actual Vorbis specification. So 
you should follow the specification, simple guessing in the demuxer likely 
won't be acceptable.

Regards,
Marton


More information about the ffmpeg-devel mailing list