From e689a27d621745dea6693f084d83585609bb1e27 Mon Sep 17 00:00:00 2001 From: John Koleszar Date: Mon, 11 Apr 2011 13:05:08 -0400 Subject: [PATCH] Bugfix for error accumulator stats 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 | 1 + vp8/encoder/rdopt.c | 1 + 2 files changed, 2 insertions(+) diff --git a/vp8/encoder/pickinter.c b/vp8/encoder/pickinter.c index 0759e2d..a92bcef 100644 --- a/vp8/encoder/pickinter.c +++ b/vp8/encoder/pickinter.c @@ -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; } diff --git a/vp8/encoder/rdopt.c b/vp8/encoder/rdopt.c index aa097b7..7335859 100644 --- a/vp8/encoder/rdopt.c +++ b/vp8/encoder/rdopt.c @@ -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; } -- 2.7.4