* encoder.c: video and audio encoder using the ffmpeg library
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
- * $Id: encoder.c,v 1.17 2003/11/29 18:36:13 massiot Exp $
+ * $Id: encoder.c,v 1.18 2003/12/04 23:15:01 gbazin Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Gildas Bazin <gbazin@netcourrier.com>
/* Backup the remaining raw samples */
if( i_samples )
{
- memcpy( p_sys->p_buffer, p_buffer + i_samples_delay * 2 *
- p_sys->p_context->channels,
+ memcpy( p_sys->p_buffer + i_samples_delay * 2 *
+ p_sys->p_context->channels, p_buffer,
i_samples * 2 * p_sys->p_context->channels );
}
* speex.c: speex decoder/packetizer/encoder module making use of libspeex.
*****************************************************************************
* Copyright (C) 2003 VideoLAN
- * $Id: speex.c,v 1.6 2003/12/04 16:49:43 sam Exp $
+ * $Id: speex.c,v 1.7 2003/12/04 23:15:01 gbazin Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
/* Backup the remaining raw samples */
if( i_samples )
{
- memcpy( p_sys->p_buffer, p_buffer + i_samples_delay * 2 *
- p_enc->fmt_in.audio.i_channels,
+ memcpy( p_sys->p_buffer + i_samples_delay * 2 *
+ p_enc->fmt_in.audio.i_channels, p_buffer,
i_samples * 2 * p_enc->fmt_in.audio.i_channels );
}