/*****************************************************************************
* linear.c : linear interpolation resampler
*****************************************************************************
- * Copyright (C) 2002 VideoLAN
+ * Copyright (C) 2002 the VideoLAN team
* $Id$
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
- * Sigmund Augdal <sigmunau@idi.ntnu.no>
+ * Sigmund Augdal Helberg <dnumgis@videolan.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
{
i_chan--;
p_out[i_chan] = p_prev_sample[i_chan];
- p_out[i_chan] += ( (p_prev_sample[i_chan] - p_in[i_chan])
+ p_out[i_chan] += ( ( p_in[i_chan] - p_prev_sample[i_chan] )
* p_sys->i_remainder
/ p_filter->output.i_rate );
}
{
i_chan--;
p_out[i_chan] = p_in[i_chan];
- p_out[i_chan] += ( (p_in[i_chan] -
- p_in[i_chan + i_nb_channels])
+ p_out[i_chan] += ( ( p_in[i_chan + i_nb_channels]
+ - p_in[i_chan] )
* p_sys->i_remainder / p_filter->output.i_rate );
}
p_out += i_nb_channels;