Commit 915f13bd authored by Ronald S. Bultje's avatar Ronald S. Bultje
Browse files

Fix dual prediction recode loop.

We should only change the dual prediction mode if we actually entered
the recode branch. Else, it may potentially undo beneficial changes
to the dual prediction mode in the first encode iteration.

Change-Id: I79fc53e5fd0bb551092ed422c797619f1566f002
parent 3adcbe2f
......@@ -1537,7 +1537,6 @@ void vp8_encode_frame(VP8_COMP *cpi)
if (redo)
{
encode_frame_internal(cpi);
}
if (cpi->common.dual_pred_mode == HYBRID_PREDICTION)
{
......@@ -1555,6 +1554,7 @@ void vp8_encode_frame(VP8_COMP *cpi)
}
}
}
}
else
#endif /* CONFIG_DUALPRED */
{
......
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