[MPlayer-dev-eng] [PATCH] AC3/DTS passthrough on big endian system, not tested.

? ? ulion2002 at msn.com
Fri Aug 10 02:34:57 CEST 2007


this patch is for test, it also include code to identity more type of dts 
streams (14bits, 16bits, little endian, big endian).

main change to make passthrough work on big endian system, is accounding 
sources of vlc, when passthrough, the bytes of ac3/dts passthrough header 
should also be swapped. as I known, vlc passthrough works fine on G4/G5 
machines. so for mplayer passthrough work on bit endian system, this patch 
is probably necessary althrough it not being tested on real big endian 
machine. PLEASE TEST IT! for mac osx user, another patch for ac3/dts 
passthrough I posted yesterday is necessary for osx's core audio hal 
passthrough to work: 
http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/2007-August/053214.html

the dts stream identity code, is added main because dts wav identify 
problem. old code does not identity dts wav (throught was ac3), then I found 
dts has more formats, so according sources of libdca, I make up other dts 
stream format identify codes.

but, even dts wav can be identified, still can not passthrough it because of 
a limit (I don't known why):
fsize=4096==nblks*32*4 (nr_samples * 2 * 2)
so I can not add the 8 bytes header to dts wav situation, even force add the 
header or change the return value, the digital audio output neigher can be 
detected correctly.

is there anybody known how to passthrough dts wav out, please tell me to add 
the support.

anyway, this patch probably fix passthrough output on bigendian machine, and 
more dts format can be identified (even dts wav still can not be 
passthroughed)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: hwac3_dts_moreformat.patch
Type: application/octet-stream
Size: 9128 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070809/09056a2d/attachment.obj>


More information about the MPlayer-dev-eng mailing list