From f8b431c334f7c10a5c471ed17a3cc24e650d69c5 Mon Sep 17 00:00:00 2001 From: James Berry Date: Tue, 6 Dec 2011 13:08:44 -0500 Subject: [PATCH] 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 --- vp8/encoder/ratectrl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vp8/encoder/ratectrl.c b/vp8/encoder/ratectrl.c index db1a327d7..1b1b69e17 100644 --- a/vp8/encoder/ratectrl.c +++ b/vp8/encoder/ratectrl.c @@ -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 -- 2.40.0