shithub: libvpx

Download patch

ref: f96b7117b1579f05b4d795d6c834005ece590f31
parent: 6b1954ee9a3367a09fa20739858e6e2ab73521e5
parent: 12acbb155223f84978b4e292a24d8b80e3566b86
author: Marco Paniconi <marpan@google.com>
date: Thu Apr 18 20:58:16 EDT 2019

Merge "vp9-rtc: Use correct plane for UV in estimate_intra"

--- a/vp9/encoder/vp9_pickmode.c
+++ b/vp9/encoder/vp9_pickmode.c
@@ -995,8 +995,8 @@
   VP9_COMP *const cpi = args->cpi;
   MACROBLOCK *const x = args->x;
   MACROBLOCKD *const xd = &x->e_mbd;
-  struct macroblock_plane *const p = &x->plane[0];
-  struct macroblockd_plane *const pd = &xd->plane[0];
+  struct macroblock_plane *const p = &x->plane[plane];
+  struct macroblockd_plane *const pd = &xd->plane[plane];
   const BLOCK_SIZE bsize_tx = txsize_to_bsize[tx_size];
   uint8_t *const src_buf_base = p->src.buf;
   uint8_t *const dst_buf_base = pd->dst.buf;