Commit cac797c2 authored by Wim Taymans's avatar Wim Taymans

gst/goom/filters.c: Avoid goom coredumping by clearing memory.

Original commit message from CVS:
* gst/goom/filters.c: (zoomFilterSetResolution):
Avoid goom coredumping by clearing memory.
Fixes 345679.
parent 05f3962c
2006-07-07 Wim Taymans <wim@fluendo.com>
* gst/goom/filters.c: (zoomFilterSetResolution):
Avoid goom coredumping by clearing memory.
Fixes 345679.
2006-07-05 Sebastien Moutte <sebastien@moutte.net>
* win32/vs6/libgstid3demux.dsp:
......
......@@ -350,7 +350,7 @@ zoomFilterSetResolution (GoomData * gd, ZoomFilterData * zf)
coeffs = (guint32 *) ((1 + ((unsigned int) (freecoeffs)) / 128) * 128);
#else
zf->buffer = malloc (sizeof (guint32) * zf->buffsize * 5);
zf->buffer = calloc (sizeof (guint32), zf->buffsize * 5);
zf->pos10 = zf->buffer;
zf->c[0] = zf->pos10 + zf->buffsize;
zf->c[1] = zf->c[0] + zf->buffsize;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment