From 6d465faa3430fa4ada389c5f889832e7c5a84ab2 Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Thu, 25 Oct 2012 18:09:02 -0700 Subject: [PATCH] Extend edges correctly during actual frame encoding also. Should fix B_PRED-related encoder/decoder mismatches. Change-Id: I16f808dffd19094e02e8562ba58cc1016155ce93 --- vp8/encoder/encodeframe.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vp8/encoder/encodeframe.c b/vp8/encoder/encodeframe.c index 893a33817..66dc6c5c5 100644 --- a/vp8/encoder/encodeframe.c +++ b/vp8/encoder/encodeframe.c @@ -982,6 +982,12 @@ static void encode_sb(VP8_COMP *cpi, cpi->update_context = 0; +#if CONFIG_SUPERBLOCKS + if (!xd->mode_info_context->mbmi.encoded_as_sb) +#endif + vp8_intra_prediction_down_copy(xd, mb_col == cm->mb_cols - 1 && + (mb_row & 1) == 0); + if (cm->frame_type == KEY_FRAME) { #if CONFIG_SUPERBLOCKS if (xd->mode_info_context->mbmi.encoded_as_sb) -- 2.40.0