]> granicus.if.org Git - libvpx/commitdiff
Extend edges correctly during actual frame encoding also.
authorRonald S. Bultje <rbultje@google.com>
Fri, 26 Oct 2012 01:09:02 +0000 (18:09 -0700)
committerRonald S. Bultje <rbultje@google.com>
Fri, 26 Oct 2012 01:09:02 +0000 (18:09 -0700)
Should fix B_PRED-related encoder/decoder mismatches.

Change-Id: I16f808dffd19094e02e8562ba58cc1016155ce93

vp8/encoder/encodeframe.c

index 893a33817a5a32d1b564c94340e9878adcb79762..66dc6c5c5278c9a993bfebe2d4e7d2783a4f5a43 100644 (file)
@@ -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)