From e94ea2c04c94e191c81c3768ee591cfbe2e53b15 Mon Sep 17 00:00:00 2001 From: Niels Elburg Date: Sat, 24 Feb 2007 21:06:39 +0000 Subject: [PATCH] clear buffer git-svn-id: svn://code.dyne.org/veejay/trunk@810 eb8d1916-c9e9-0310-b8de-cf0c9472ead5 --- veejay-current/libvje/effects/timedistort.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/veejay-current/libvje/effects/timedistort.c b/veejay-current/libvje/effects/timedistort.c index 93a6ae39..b9b3db91 100644 --- a/veejay-current/libvje/effects/timedistort.c +++ b/veejay-current/libvje/effects/timedistort.c @@ -75,10 +75,14 @@ int timedistort_malloc( int w, int h ) if(!nonmap) return 0; - planes[0] = vj_calloc( (PLANES * 3 * w * h) * sizeof(uint8_t)); + planes[0] = vj_malloc( (PLANES * 3 * w * h) * sizeof(uint8_t)); planes[1] = planes[0] + (PLANES * w * h ); planes[2] = planes[1] + (PLANES * w * h ); + veejay_memset( planes[0],0, (PLANES * w * h )); + veejay_memset( planes[1],128,(PLANES * w * H )); + veejay_memset( planes[2],128,(PLANES * w * H )); + have_bg = 0; n__ = 0; N__ = 0;