Commit e11878c8 authored by paulwilkins's avatar paulwilkins Committed by Gerrit Code Review
Browse files

Merge "Add extra resize trigger for frames above maximum allowed size."

parents 3c524488 a6f2a961
......@@ -2628,9 +2628,10 @@ static int recode_loop_test(VP9_COMP *cpi,
const int frame_is_kfgfarf = frame_is_kf_gf_arf(cpi);
int force_recode = 0;
if ((cpi->sf.recode_loop == ALLOW_RECODE) ||
if ((rc->projected_frame_size >= rc->max_frame_bandwidth) ||
(cpi->sf.recode_loop == ALLOW_RECODE) ||
(frame_is_kfgfarf &&
(cpi->sf.recode_loop == ALLOW_RECODE_KFARFGF))) {
(cpi->sf.recode_loop == ALLOW_RECODE_KFARFGF))) {
if (frame_is_kfgfarf &&
(oxcf->resize_mode == RESIZE_DYNAMIC) &&
scale_down(cpi, q)) {
......
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