[PATCH] Use the number of audio channels from decoder in ad_ffmpeg
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.
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
Hi 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.
patch looks ok ... [...] -- Michael In the past you could go to a library and read, borrow or copy any book Today you'd get arrested for mere telling someone where the library is
On Wed, Apr 19, 2006 at 03:52:01AM +0200, Michael Niedermayer wrote:
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.
patch looks ok ...
Applied. Diego
participants (3)
-
Diego Biurrun -
Michael Niedermayer -
Uoti Urpala