[FFmpeg-soc] [soc]: r945 - qcelp/qcelpdec.c
Michael Niedermayer
michaelni at gmx.at
Sat Aug 18 04:15:41 CEST 2007
Hi
On Sat, Aug 18, 2007 at 03:50:20AM +0200, reynaldo wrote:
> Author: reynaldo
> Date: Sat Aug 18 03:50:20 2007
> New Revision: 945
>
> Log:
> use memset instead of zero setting loops
>
> Modified:
> qcelp/qcelpdec.c
>
> Modified: qcelp/qcelpdec.c
> ==============================================================================
> --- qcelp/qcelpdec.c (original)
> +++ qcelp/qcelpdec.c Sat Aug 18 03:50:20 2007
> @@ -90,11 +90,9 @@ static int qcelp_decode_init(AVCodecCont
>
> q->frame_num=0;
>
> - for(i=0; i<10; i++)
> - q->prev_lspf[i]=0.0;
> -
> - for(i=0; i<144; i++)
> - q->pitchf_mem[i]=q->pitchp_mem[i]=0.0;
> + memset(q->prev_lspf , 0, 10 *sizeof(float));
> + memset(q->pitchf_mem, 0, 144*sizeof(float));
> + memset(q->pitchp_mem, 0, 144*sizeof(float));
sizeof(q->prev_lspf) should work as well ...
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
When you are offended at any man's fault, turn to yourself and study your
own failings. Then you will forget your anger. -- Epictetus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-soc/attachments/20070818/f99f43b0/attachment.pgp>
More information about the FFmpeg-soc
mailing list