[FFmpeg-cvslog] Detect byte-swapped AC-3 and support decoding it?directly.

Reimar Döffinger Reimar.Doeffinger at gmx.de
Thu Mar 24 18:58:41 CET 2011


On Wed, Mar 23, 2011 at 09:25:40AM +0000, Joakim Plate wrote:
> Joakim Plate <elupus <at> ecce.se> writes:
> 
> > There is a problem here. I seem to recall from mplayer days (on the xbox) that 
> > there are AC3 samples that have odd packet counts. With ffmin, these would
> > chop of the last byte of data.
> 
> Nevermind. Turns out it was a dts sample in mkv with uneven frame sizes. Still 
> have the sample if anybody is interested.

Note that I don't think there is an issue here anyway.
The issue you describe to my knowledge only really happens when you convert
_to_ the swapped format.
For the issue to appear the other way round, the original stream without
swapping would have to have had an even number of bytes, and the previous
to last byte would have to have been 0 by pure chance, and then the encoder/
whatever did the swapping would have to truncate 0-bytes on purpose.



More information about the ffmpeg-cvslog mailing list