Bugfix for error accumulator stats
authorJohn Koleszar <jkoleszar@google.com>
Mon, 11 Apr 2011 17:05:08 +0000 (13:05 -0400)
committerJohn Koleszar <jkoleszar@google.com>
Tue, 12 Apr 2011 12:47:33 +0000 (08:47 -0400)
Previous to commit de4e9e3, there was an early return in the alt-ref
case that was inadvertantly removed when the function was refactored
to return void. This patch restores the prior behavior.

Change-Id: I783ffd594a4690297e2742f99526fd7ad67698b2

vp8/encoder/pickinter.c
vp8/encoder/rdopt.c

index 0759e2d..a92bcef 100644 (file)
@@ -932,6 +932,7 @@ void vp8_pick_inter_mode(VP8_COMP *cpi, MACROBLOCK *x, int recon_yoffset, int re
         }
 
         x->e_mbd.mode_info_context->mbmi.mv.as_int = 0;
+        return;
     }
 
 
index aa097b7..7335859 100644 (file)
@@ -2479,6 +2479,7 @@ void vp8_rd_pick_inter_mode(VP8_COMP *cpi, MACROBLOCK *x, int recon_yoffset, int
         }
 
         x->e_mbd.mode_info_context->mbmi.mv.as_int = 0;
+        return;
     }