From: Michael Niedermayer Date: Thu, 29 Dec 2005 02:17:51 +0000 (+0000) Subject: 4mv + iter ME 10l fix (still not bugfree but better) X-Git-Tag: v0.5~13374 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d6f41eeddc4862fd92aecd9cb853c3cf6724f676;p=platform%2Fupstream%2Flibav.git 4mv + iter ME 10l fix (still not bugfree but better) Originally committed as revision 4783 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/libavcodec/snow.c b/libavcodec/snow.c index 559955e..f6c1f86 100644 --- a/libavcodec/snow.c +++ b/libavcodec/snow.c @@ -2294,14 +2294,14 @@ static void encode_q_branch2(SnowContext *s, int level, int x, int y){ if(level!=s->block_max_depth){ if(same_block(b,b+1) && same_block(b,b+w) && same_block(b,b+w+1)){ + put_rac(&s->c, &s->block_state[4 + s_context], 1); + }else{ put_rac(&s->c, &s->block_state[4 + s_context], 0); encode_q_branch2(s, level+1, 2*x+0, 2*y+0); encode_q_branch2(s, level+1, 2*x+1, 2*y+0); encode_q_branch2(s, level+1, 2*x+0, 2*y+1); encode_q_branch2(s, level+1, 2*x+1, 2*y+1); return; - }else{ - put_rac(&s->c, &s->block_state[4 + s_context], 1); } } if(b->type & BLOCK_INTRA){