[FFmpeg-cvslog] af_biquads: memset(0) cache

Nicolas George nicolas.george at normalesup.org
Wed Feb 27 10:11:36 CET 2013


Le septidi 7 ventôse, an CCXXI, Michael Niedermayer a écrit :
>      p->cache = av_realloc_f(p->cache, sizeof(ChanCache), inlink->channels);
>      if (!p->cache)
>          return AVERROR(ENOMEM);
> +    memset(p->cache, 0, sizeof(ChanCache) * inlink->channels);

Is it not a situation where av_fast_malloc() is the good choice?

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-cvslog/attachments/20130227/5db285ff/attachment.asc>


More information about the ffmpeg-cvslog mailing list