changeset 2231:440b15b32181

quick fix for movies with a height which is not a multiple of 8
author michael
date Wed, 17 Oct 2001 02:04:16 +0000
parents 3f7a5bf1f9f4
children 65996b3467d7
files postproc/postprocess.c postproc/postprocess_template.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/postproc/postprocess.c	Wed Oct 17 00:29:07 2001 +0000
+++ b/postproc/postprocess.c	Wed Oct 17 02:04:16 2001 +0000
@@ -2607,7 +2607,7 @@
 	for(x=0; x<width; x+=BLOCK_SIZE)
 		blockCopy(dst + x, dstStride, src + x, srcStride, 8, mode & LEVEL_FIX);
 
-	for(y=0; y<height; y+=BLOCK_SIZE)
+	for(y=0; y<height-7; y+=BLOCK_SIZE)
 	{
 		//1% speedup if these are here instead of the inner loop
 		uint8_t *srcBlock= &(src[y*srcStride]);
--- a/postproc/postprocess_template.c	Wed Oct 17 00:29:07 2001 +0000
+++ b/postproc/postprocess_template.c	Wed Oct 17 02:04:16 2001 +0000
@@ -2607,7 +2607,7 @@
 	for(x=0; x<width; x+=BLOCK_SIZE)
 		blockCopy(dst + x, dstStride, src + x, srcStride, 8, mode & LEVEL_FIX);
 
-	for(y=0; y<height; y+=BLOCK_SIZE)
+	for(y=0; y<height-7; y+=BLOCK_SIZE)
 	{
 		//1% speedup if these are here instead of the inner loop
 		uint8_t *srcBlock= &(src[y*srcStride]);