shithub: libvpx

Download patch

ref: 4130e691bb911d58134fca85297ab279a6bae6a2
parent: a0af41697582349310c32292e9c9ff733a412da3
parent: dae97868da290b2d401416caed80a22bbdcae6de
author: Jim Bankoski <[email protected]>
date: Wed Oct 8 05:04:01 EDT 2014

Merge "Force better lower quantizer keyframe in case of high quantizer."

--- a/vp9/encoder/vp9_ratectrl.c
+++ b/vp9/encoder/vp9_ratectrl.c
@@ -563,7 +563,7 @@
   int adjustment = 0;
   int active_worst_quality;
   if (cm->frame_type == KEY_FRAME)
-    return rc->worst_quality;
+    return rc->worst_quality * 4 / 5;
   if (cm->current_video_frame > 1)
     active_worst_quality = MIN(rc->worst_quality,
                                rc->avg_frame_qindex[INTER_FRAME] * 5 / 4);