aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2001-10-17 02:04:16 +0000
committerMichael Niedermayer <michaelni@gmx.at>2001-10-17 02:04:16 +0000
commitd4cb9e70a5dd423d03086bb4a60067bda2db8448 (patch)
tree75036decf4b41be6aa39d3ff4fe814f219162343
parentd1530c64618e3a59ec9e3a82b270e777b4524029 (diff)
downloadffmpeg-d4cb9e70a5dd423d03086bb4a60067bda2db8448.tar.gz
quick fix for movies with a height which is not a multiple of 8
Originally committed as revision 2232 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
-rw-r--r--postproc/postprocess.c2
-rw-r--r--postproc/postprocess_template.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/postproc/postprocess.c b/postproc/postprocess.c
index 5cd2f8900e..93603e0c3a 100644
--- a/postproc/postprocess.c
+++ b/postproc/postprocess.c
@@ -2607,7 +2607,7 @@ static void postProcess(uint8_t src[], int srcStride, uint8_t dst[], int dstStri
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]);
diff --git a/postproc/postprocess_template.c b/postproc/postprocess_template.c
index 5cd2f8900e..93603e0c3a 100644
--- a/postproc/postprocess_template.c
+++ b/postproc/postprocess_template.c
@@ -2607,7 +2607,7 @@ static void postProcess(uint8_t src[], int srcStride, uint8_t dst[], int dstStri
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]);