# HG changeset patch # User michael # Date 1142036323 0 # Node ID e1cbe2635325cb5ff905f751455467656d2cefc6 # Parent 04636faaa72020863a464ff8b7f0294bdeb18a64 fix %8 != 0 w/h diff -r 04636faaa720 -r e1cbe2635325 snow.c --- a/snow.c Fri Mar 10 22:00:36 2006 +0000 +++ b/snow.c Sat Mar 11 00:18:43 2006 +0000 @@ -2520,11 +2520,11 @@ ff_emulated_edge_mc(tmp + MB_SIZE, src, stride, b_w+5, b_h+5, sx, sy, w, h); src= tmp + MB_SIZE; } - assert(b_w == b_h || 2*b_w == b_h || b_w == 2*b_h); - assert(!(b_w&(b_w-1))); +// assert(b_w == b_h || 2*b_w == b_h || b_w == 2*b_h); +// assert(!(b_w&(b_w-1))); assert(b_w>1 && b_h>1); assert(tab_index>=0 && tab_index<4 || b_w==32); - if((dx&3) || (dy&3)) + if((dx&3) || (dy&3) || !(b_w == b_h || 2*b_w == b_h || b_w == 2*b_h) || (b_w&(b_w-1))) mc_block(dst, src, tmp, stride, b_w, b_h, dx, dy); else if(b_w==32){ int y;