ref: f8b431c334f7c10a5c471ed17a3cc24e650d69c5
parent: aa7335e610b961626f77130bc99b24de1031601d
author: James Berry <jamesberry@google.com>
date: Tue Dec 6 08:08:44 EST 2011
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
--- a/vp8/encoder/ratectrl.c
+++ b/vp8/encoder/ratectrl.c
@@ -932,6 +932,8 @@
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
--
⑨