diff options
author | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-10-17 02:04:16 +0000 |
---|---|---|
committer | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-10-17 02:04:16 +0000 |
commit | 5904f014cf4d348b5d42b3a70427d479957780a3 (patch) | |
tree | 85f5b1ed2dd40912a074e5a4f1e9d19736e15349 /postproc | |
parent | 984f2f5665315d44eda3a569a8ea499b10196351 (diff) | |
download | mpv-5904f014cf4d348b5d42b3a70427d479957780a3.tar.bz2 mpv-5904f014cf4d348b5d42b3a70427d479957780a3.tar.xz |
quick fix for movies with a height which is not a multiple of 8
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2232 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'postproc')
-rw-r--r-- | postproc/postprocess.c | 2 | ||||
-rw-r--r-- | postproc/postprocess_template.c | 2 |
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]); |