audioconvert: Wrong endianness swap for unpacked audio format
The audioconverter plugin is not correctly converting endianness for unpacked audio format (where sample width is different from sample depth):
gst-launch-1.0 -v audiotestsrc ! audio/x-raw, format=S24_32BE ! audioconvert ! audio/x-raw, format=S24_32LE ! autoaudiosink
The problem originates from the fact that the audio converter is initiating the endian conversion function based on the sample width, which i don't think it's the right behavior, where it should be based on the sample width. I tried the attached patch for the audio-converter and it seems to fix the issue.0001-audio-convert-Fix-endianness-conversion-function-ini.patch