Discussion:
a52: drop reverse-stereo support
(too old to reply)
Thomas Guillem
2017-07-13 15:19:33 UTC
Permalink
Raw Message
vlc | branch: master | Thomas Guillem <***@gllm.fr> | Thu Jul 13 14:19:06 2017 +0200| [a5feca75a7b17841e00df1c1b07141936f19a647] | committer: Thomas Guillem

a52: drop reverse-stereo support

This code path was never used since the AOUT_CHAN_REVERSESTEREO flag is never
set from the input or from this codec.
http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a5feca75a7b17841e00df1c1b07141936f19a647
---

modules/codec/dca.c | 21 ---------------------
1 file changed, 21 deletions(-)

diff --git a/modules/codec/dca.c b/modules/codec/dca.c
index bb8f96dbb2..4462e77af6 100644
--- a/modules/codec/dca.c
+++ b/modules/codec/dca.c
@@ -107,21 +107,6 @@ static void Duplicate( float * p_out, const float * p_in )
}
}

-/*
- * helper function to exchange left & right channels
- */
-static void Exchange( float * p_out, const float * p_in )
-{
- const float * p_first = p_in + 256;
- const float * p_second = p_in;
-
- for ( int i = 0; i < 256; i++ )
- {
- *p_out++ = *p_first++;
- *p_out++ = *p_second++;
- }
-}
-
static int Decode( decoder_t *p_dec, block_t *p_in_buf )
{
decoder_sys_t *p_sys = p_dec->p_sys;
@@ -186,12 +171,6 @@ static int Decode( decoder_t *p_dec, block_t *p_in_buf )
Duplicate( (float *)(p_out_buf->p_buffer + i * i_bytes_per_block),
p_samples );
}
- else if ( p_dec->fmt_out.audio.i_original_channels
- & AOUT_CHAN_REVERSESTEREO )
- {
- Exchange( (float *)(p_out_buf->p_buffer + i * i_bytes_per_block),
- p_samples );
- }
else
{
/* Interleave the *$£%ù samples. */

Loading...