Merge "fix potential use of uninitialized rate_y"

This commit is contained in:
John Koleszar 2012-03-14 12:00:27 -07:00 committed by Gerrit Code Review
commit 422f97d7ab

View File

@ -763,7 +763,7 @@ static int rd_pick_intra4x4mby_modes(VP8_COMP *cpi, MACROBLOCK *mb, int *Rate,
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);