[FFmpeg-soc] [soc]: r785 - qcelp/qcelpdec.c
Aurelien Jacobs
aurel at gnuage.org
Tue Aug 14 19:11:53 CEST 2007
On Tue, 14 Aug 2007 18:53:25 +0200 (CEST)
reynaldo <subversion at mplayerhq.hu> wrote:
> Author: reynaldo
> Date: Tue Aug 14 18:53:25 2007
> New Revision: 785
>
> Log:
> Fix error at clip boundary spoted by Aurelien Jacobs -- for real
>
> Modified:
> qcelp/qcelpdec.c
>
> Modified: qcelp/qcelpdec.c
> ==============================================================================
> --- qcelp/qcelpdec.c (original)
> +++ qcelp/qcelpdec.c Tue Aug 14 18:53:25 2007
> @@ -865,7 +865,7 @@ static int qcelp_decode_frame(AVCodecCon
> /* WIP adaptive postfilter here */
>
> /* output stage */
> - outbuffer[i]=av_clip_int16(lrintf(4*ppf_vector[i]), -32768, 32767);
> + outbuffer[i]=av_clip(lrintf(4*ppf_vector[i]), -32768, 32767);
av_clip_int16() was the right function to use, but it only takes one parameter:
av_clip_int16(lrintf(4*ppf_vector[i]));
(and it's faster than av_clip())
Aurel
More information about the FFmpeg-soc
mailing list