[MPlayer-cvslog] r18649 - trunk/libmpcodecs/vf_mcdeint.c
michael
subversion at mplayerhq.hu
Thu Jun 8 14:30:53 CEST 2006
Author: michael
Date: Thu Jun 8 14:30:53 2006
New Revision: 18649
Modified:
trunk/libmpcodecs/vf_mcdeint.c
Log:
filter left & right edges too (yeah the code is lame i know...)
Modified: trunk/libmpcodecs/vf_mcdeint.c
==============================================================================
--- trunk/libmpcodecs/vf_mcdeint.c (original)
+++ trunk/libmpcodecs/vf_mcdeint.c Thu Jun 8 14:30:53 2006
@@ -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];
More information about the MPlayer-cvslog
mailing list