# HG changeset patch # User michael # Date 1191501174 0 # Node ID 065d1f97815fb16d9093eabf99ffdfeeaf4b7a1f # Parent 9aab9d7b51f0bef33b161688f23c9d19568352fc fix infinite loop diff -r 9aab9d7b51f0 -r 065d1f97815f libmpcodecs/vf_ow.c --- a/libmpcodecs/vf_ow.c Thu Oct 04 02:35:34 2007 +0000 +++ b/libmpcodecs/vf_ow.c Thu Oct 04 12:32:54 2007 +0000 @@ -167,15 +167,19 @@ int x,y, i, j; double sum=0; double s= p->strength[!is_luma]; + int depth= p->depth; + + while(1< width || 1< height) + depth--; for(y=0; yplane[0][0][x + y*p->stride]= src[x + y*src_stride]; - for(i=0; idepth; i++){ + for(i=0; iplane[i+1], p->plane[i][0], p->plane[0]+1,p->stride, 1<depth; i++){ + for(i=0; idepth-1; i>=0; i--){ + for(i=depth-1; i>=0; i--){ compose2D2(p->plane[i][0], p->plane[i+1], p->plane[0]+1, p->stride, 1<