From: Marco Paniconi Date: Mon, 5 Nov 2018 17:35:47 +0000 (-0800) Subject: vp8: Increase rate correction threshold for drop-overshoot X-Git-Tag: v1.8.0~170^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e161a36a6f5b133adb4eb3174e9530025677eaea;p=libvpx vp8: Increase rate correction threshold for drop-overshoot For 1 pass cbr encoding mode, with frame-dropping on: increase the rate correction threshold for drop-overshoot detection, to better capture cases of large overshoot. Change-Id: I1153b1b71cf106749dd985074d6bc8f37d163c7e --- diff --git a/vp8/encoder/ratectrl.c b/vp8/encoder/ratectrl.c index fc833bccc..ce07a6f19 100644 --- a/vp8/encoder/ratectrl.c +++ b/vp8/encoder/ratectrl.c @@ -1464,7 +1464,7 @@ int vp8_drop_encodedframe_overshoot(VP8_COMP *cpi, int Q) { (cpi->oxcf.screen_content_mode == 2 || (cpi->drop_frames_allowed && (force_drop_overshoot || - (cpi->rate_correction_factor < (4.0f * MIN_BPB_FACTOR) && + (cpi->rate_correction_factor < (8.0f * MIN_BPB_FACTOR) && cpi->frames_since_last_drop_overshoot > (int)cpi->framerate))))) { // Note: the "projected_frame_size" from encode_frame() only gives estimate // of mode/motion vector rate (in non-rd mode): so below we only require