Commit 9dc7d4fb authored by Ronald S. Bultje's avatar Ronald S. Bultje
Browse files

Fix crash in pick_inter_mode_sb().

It didn't handle rd_thresh == INT_MAX, which means the reference is

Change-Id: Ie6fa8b2577437411db81a8c24e8dcdfd856a0e8d
parent 9970d8b6
......@@ -4632,7 +4632,8 @@ int64_t vp9_rd_pick_inter_mode_sb(VP9_COMP *cpi, MACROBLOCK *x,
// Test best rd so far against threshold for trying this mode.
if (best_rd <= cpi->rd_threshes[mode_index]) {
if (best_rd <= cpi->rd_threshes[mode_index] ||
cpi->rd_threshes[mode_index] == INT_MAX) {
Supports Markdown
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