Browse Source

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
tags/v0.5
Michael Niedermayer 24 years ago
parent
commit
d4cb9e70a5
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      postproc/postprocess.c
  2. +1
    -1
      postproc/postprocess_template.c

+ 1
- 1
postproc/postprocess.c View File

@@ -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]);


+ 1
- 1
postproc/postprocess_template.c View File

@@ -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]);


Loading…
Cancel
Save