[MPlayer-dev-eng] [PATCH] bigendian fix for hwac3
Reimar Döffinger
Reimar.Doeffinger at stud.uni-karlsruhe.de
Thu Sep 13 19:44:17 CEST 2007
Hello,
On Fri, Sep 14, 2007 at 01:16:01AM +0800, Ulion wrote:
[...]
> If we want to prevent byte-swap twice both in hwac3 and ao module and
> place all byte-swap code in one place (hwac3), we have to make hwac3
> known accurate byte-order of the output stream.
No, you can teach af_format the conversion between BE and LE AC3
(which luckily is exactly the same as for normal 16 bit audio) and make
hwac3 always output whatever the input is, and just make it add the
headers (in the right endianness for the input data format - the
simplest way to do this is probably to always write the headers in
native endian and swab them if the format passed through has different
endianness - swapping 8 bytes hardly uses any CPU).
Greetings,
Reimar Döffinger
More information about the MPlayer-dev-eng
mailing list