Commit a0a45ea1 authored by Laurent Aimar's avatar Laurent Aimar Committed by Jean-Baptiste Kempf

Fixed reverse stereo mode (close #3755).

(cherry picked from commit 58978144)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 1c01d49d
...@@ -161,10 +161,11 @@ static block_t *DoWork( filter_t * p_filter, block_t * p_in_buf ) ...@@ -161,10 +161,11 @@ static block_t *DoWork( filter_t * p_filter, block_t * p_in_buf )
int i; int i;
for ( i = p_in_buf->i_nb_samples; i--; ) for ( i = p_in_buf->i_nb_samples; i--; )
{ {
*p_dest = p_src[1]; int32_t i_tmp = p_src[0];
p_dest++; p_dest[0] = p_src[1];
*p_dest = p_src[0]; p_dest[1] = i_tmp;
p_dest++;
p_dest += 2;
p_src += 2; p_src += 2;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment