[MPlayer-dev-eng] [PATCH] bigendian fix for hwac3
Reimar Döffinger
Reimar.Doeffinger at stud.uni-karlsruhe.de
Thu Sep 13 15:57:47 CEST 2007
Hello,
On Thu, Sep 13, 2007 at 09:01:43PM +0800, Ulion wrote:
[...]
> Although you are right, I think we should try to figure out a way to
> swap by output stream's format flag. We should use machine byte-order
> only if there's no way to get the output stream's format.
>
> Or we should always output little endian bytes from hwac3, and swap
> bytes in ao modules if needed?
>
> Or introduce a hwac3_be afm or a parameter for hwac3 to decide output byteorder?
The right way would be to combine AF_FORMAT_AC3 with either AF_FORMAT_LE
or AF_FORMAT_BE as it is done for all other formats, but that is of
course a solution with a bit more effort.
Greetings,
Reimar Döffinger
More information about the MPlayer-dev-eng
mailing list