Commit c05a4aa7 authored by Hui Su's avatar Hui Su

Fix valgrind error in av1_rd_pick_inter_mode_sb()

Initialize the RD_STATS variable to avoid valgrind error of
"Conditional jump or move depends on uninitialised value(s)".

BUG=aomedia:1219,aomedia:1226

Change-Id: Ie7749c8297b377750f0901d07e2c6024552a10df
parent fc321aac
......@@ -9110,7 +9110,7 @@ void av1_rd_pick_inter_mode_sb(const AV1_COMP *cpi, TileDataEnc *tile_data,
}
}
rd_cost->rate = INT_MAX;
av1_invalid_rd_stats(rd_cost);
for (ref_frame = LAST_FRAME; ref_frame <= ALTREF_FRAME; ++ref_frame) {
x->pred_mv_sad[ref_frame] = INT_MAX;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment