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

@@ -159,7 +159,7 @@ static void mmx_blur(uint8_t *buffer, int width, int height)
len = (width*height)-1;
for (i = len; i > scrsh; i -= 4) {
for (i = len-1; i > scrsh; i -= 4) {
__asm __volatile
("\n\t movd %[buf], %%mm0"
"\n\t movd %[add1], %%mm1"