[MPlayer-dev-eng] [PATCH] Use the number of audio channels from decoder in ad_ffmpeg

Diego Biurrun diego at biurrun.de
Tue Apr 18 23:24:24 CEST 2006


On Tue, Apr 18, 2006 at 05:26:00PM +0300, Uoti Urpala wrote:
> Diego changed ad_ffmpeg to use the channel count, samplerate and input
> bps values from the container instead of the decoder. This breaks a DTS
> sample I have; the container says the audio has 6 channels but the
> decoder gives 2. The attached patch changes the code to use the number
> of channels from the decoder instead. I think this is unlikely to break
> other samples because the decoder would almost certainly produce badly
> garbled output anyway if it was using the wrong number of channels.

This fixes the mentioned sample while appearing not to break any other
samples (famous last words).  Michael, what do you say?

Diego




More information about the MPlayer-dev-eng mailing list