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
This commit is contained in:
parent
953c6a011e
commit
20cd3e6b8f
@ -741,7 +741,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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user