ref: 20cd3e6b8f87f70096bf465ee2a509c93730ee5c
parent: 953c6a011eb8c290ba77211b007bce477831302a
author: John Koleszar <jkoleszar@google.com>
date: Wed Mar 14 06:10:30 EDT 2012
fix potential use of uninitialized rate_y This issue likely doesn't appear in the unmodified encoder, but sufficient hacking on the mode selection loop can expose it. Change-Id: I8a35831e8f08b549806d0c2c6900d42af883f78f
--- a/vp8/encoder/rdopt.c
+++ b/vp8/encoder/rdopt.c
@@ -741,7 +741,7 @@
return INT_MAX;
*Rate = cost;
- *rate_y += tot_rate_y;
+ *rate_y = tot_rate_y;
*Distortion = distortion;
return RDCOST(mb->rdmult, mb->rddiv, cost, distortion);
--
⑨