Mercurial > libavcodec.hg
changeset 109:dfa9fde4b72d libavcodec
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 | 1e4a4af694d1 |
children | e00e5d93457c |
files | libpostproc/postprocess.c libpostproc/postprocess_template.c |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libpostproc/postprocess.c Tue Oct 16 23:10:38 2001 +0000 +++ b/libpostproc/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/libpostproc/postprocess_template.c Tue Oct 16 23:10:38 2001 +0000 +++ b/libpostproc/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]);