changeset 18648:7cc939d4a9e2

filter left & right edges too (yeah the code is lame i know...)
author michael
date Thu, 08 Jun 2006 12:30:53 +0000
parents c921020fd8bd
children a367e32c2173
files libmpcodecs/vf_mcdeint.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_mcdeint.c	Thu Jun 08 10:36:35 2006 +0000
+++ b/libmpcodecs/vf_mcdeint.c	Thu Jun 08 12:30:53 2006 +0000
@@ -113,7 +113,7 @@
         for(y=0; y<h; y++){
             if((y ^ p->parity) & 1){
                 for(x=0; x<w; x++){
-                    if(x>0 && y>0 && x+1<w && y+1<h){
+                    if((x-2)+(y-1)*w>=0 && (x+2)+(y+1)*w<w*h){ //FIXME either alloc larger images or optimize this
                         uint8_t *filp= &p->frame_dec->data[i][x + y*fils];
                         uint8_t *srcp= &src[i][x + y*srcs];
                         int diff0= filp[-fils] - srcp[-srcs];