[FFmpeg-devel] [PATCH] Fix for Errors decoding TrueHD 7.1 streams (issue1866)

Ramiro Polla ramiro.polla
Tue May 11 03:46:43 CEST 2010

On Sun, May 9, 2010 at 3:01 PM, Nick Brereton <nick at nbrereton.net> wrote:
> I took a look at issue1866 ( https://roundup.ffmpeg.org/issue1866 -
> "Errors decoding TrueHD 7.1 streams") & have attached a patch that fixes
> the problem.
> The root cause is that the supplied sample has a substream (for the 7.1
> case) with a channel range that overlaps the previously decoded
> channels. This is a problem as the existing code only allocates 1 set of
> channel decoding parameters per channel despite these being also
> dependant on the substream number; when lower substreams are decoded
> after a restart header has been processed for the higher overlapping
> substream the wrong coding parameters are used. I've moved the channel
> coding info structures into the substream structure & modified
> references accordingly.

Thank you. Applied.

More information about the ffmpeg-devel mailing list