Commit f8b431c3 authored by James Berry's avatar James Berry
Browse files

fix: active_worst_quality could be set above 127

add check to set active_worst_quality to 127 if it
is set above 127

Change-Id: I7db353d5c1b1c8516a116542b6ed21c0110bb512
parent aa7335e6
......@@ -932,6 +932,8 @@ static void calc_pframe_target_size(VP8_COMP *cpi)
if (cpi->active_worst_quality <= cpi->active_best_quality)
cpi->active_worst_quality = cpi->active_best_quality + 1;
if(cpi->active_worst_quality > 127)
cpi->active_worst_quality = 127;
}
// Unbuffered mode (eg. video conferencing)
else
......
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