fixed possible segfault in mmx blur

git-svn-id: svn://code.dyne.org/veejay/trunk@867 eb8d1916-c9e9-0310-b8de-cf0c9472ead5
This commit is contained in:
Niels Elburg
2007-03-19 12:53:14 +00:00
parent c0d7a8d4f3
commit 14733d68a4
4 changed files with 40 additions and 41 deletions

View File

@@ -78,7 +78,7 @@ int diff_malloc(void **d, int width, int height)
my->current = my->data + (width*height);
if(static_bg == NULL)
static_bg = (uint8_t*) vj_calloc( ru8(width * height * sizeof(uint8_t)) );
static_bg = (uint8_t*) vj_calloc( ru8( width + width * height * sizeof(uint8_t)) );
return 1;
}