[vlc-devel] commit: faad: sets physical channel configuration in all cases ( Rafaël Carré )
git version control
git at videolan.org
Thu Apr 10 17:14:20 CEST 2008
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Thu Apr 10 15:11:20 2008 +0200| [c86adb0f31d59ae08df11870ec33a0966c34624e]
faad: sets physical channel configuration in all cases
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c86adb0f31d59ae08df11870ec33a0966c34624e
---
modules/codec/faad.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/modules/codec/faad.c b/modules/codec/faad.c
index 4f2bb9f..6434286 100644
--- a/modules/codec/faad.c
+++ b/modules/codec/faad.c
@@ -266,6 +266,10 @@ static aout_buffer_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
{
p_dec->fmt_out.audio.i_rate = i_rate;
p_dec->fmt_out.audio.i_channels = i_channels;
+ p_dec->fmt_out.audio.i_physical_channels
+ = p_dec->fmt_out.audio.i_original_channels
+ = pi_channels_guessed[i_channels];
+
aout_DateInit( &p_sys->date, i_rate );
}
}
@@ -286,6 +290,9 @@ static aout_buffer_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
p_dec->fmt_out.audio.i_rate = i_rate;
p_dec->fmt_out.audio.i_channels = i_channels;
+ p_dec->fmt_out.audio.i_physical_channels
+ = p_dec->fmt_out.audio.i_original_channels
+ = pi_channels_guessed[i_channels];
aout_DateInit( &p_sys->date, i_rate );
}
@@ -362,6 +369,9 @@ static aout_buffer_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
p_dec->fmt_out.audio.i_rate = frame.samplerate;
p_dec->fmt_out.audio.i_channels = frame.channels;
+ p_dec->fmt_out.audio.i_physical_channels
+ = p_dec->fmt_out.audio.i_original_channels
+ = pi_channels_guessed[frame.channels];
/* Adjust stream info when dealing with SBR/PS */
if( (p_sys->b_sbr != frame.sbr || p_sys->b_ps != frame.ps) &&
More information about the vlc-devel
mailing list