Fix AC3 encoder following FFmpeg resync

AC3 encoder now expects planar audio data. This commit adds an utility method to de-interleave and convert interleaved data into planar data.

Fixes #11483