shithub: libvpx

Download patch

ref: ffc2e4f4af34a202dd2a8fd47ebe1af5893e5e0c
parent: 9dc9f07fb8a1452fb123d280741bfbc6469a6ec1
author: Ronald S. Bultje <rbultje@google.com>
date: Fri Jan 25 11:08:19 EST 2013

Fix block pointer corruption in intra8x8 prediction with 4x4 transform.

The RD loop would change the pointer after the first mode (DC) was tested,
leading to corrupt block objects being provided for the others. This
would essentially render the i8x8 predictor useless.

Change-Id: I16c5906ca64fb34878ac32ce59af8974e4582bb8

--- a/vp9/encoder/vp9_rdopt.c
+++ b/vp9/encoder/vp9_rdopt.c
@@ -1476,6 +1476,8 @@
                               &ta0, &tl0,
                               TX_4X4);
       }
+      b = &xd->block[ib];
+      be = &x->block[ib];
       rate += rate_t;
     }
 
--