mirror of https://github.com/mpv-player/mpv
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
This commit is contained in:
parent
984f2f5665
commit
5904f014cf
|
@ -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]);
|
||||
|
|
|
@ -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…
Reference in New Issue