changeset 2995:dfc271b90fe6 libavcodec

4mv + iter ME 10l fix (still not bugfree but better)
author michael
date Thu, 29 Dec 2005 02:17:51 +0000
parents 657e8546090d
children bf34de4233a0
files snow.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/snow.c	Wed Dec 28 23:45:16 2005 +0000
+++ b/snow.c	Thu Dec 29 02:17:51 2005 +0000
@@ -2294,14 +2294,14 @@
 
     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){