[FFmpeg-devel] [PATCH] Add a parser for DNET (byte-swapped AC3).

Anssi Hannula anssi.hannula
Thu Mar 3 04:02:53 CET 2011

On 03.03.2011 02:01, Justin Ruggles wrote:
> On 03/02/2011 06:08 PM, Reimar D?ffinger wrote:
>> And I forgot: stream copy would end up creating files that only FFmpeg can play unless we add a special hack.
>> Contrary to the different DTS formats which are all really DTS, byte-swapped AC-3 is not considered AC-3 by any implementation I know of.
> Dolby's decoder can handle byte-swapped AC3.  I would guess that other
> Dolby-licensed decoders can as well.  I do see your point though that
> treating byte-swapped AC3 as identical to AC3 could cause problems
> during muxing when the byte order matters depending on the container.

Maybe that's not what you meant, but at least my A/V receiver can only
decode non-swapped AC3 and DTS.

I haven't seen any samples that have swapped DTS, though (except for
DTS-in-WAV, but they are only swapped because an audio card / CD player
byteswaps the data again when it sends it over S/PDIF, making it
non-swapped again when it reaches the decoder), but I didn't look very
hard :)

Anssi Hannula

More information about the ffmpeg-devel mailing list