]> granicus.if.org Git - libvpx/commitdiff
vp9: Fix issue in scene/content change detection.
authorMarco <marpan@google.com>
Fri, 11 Mar 2016 20:15:27 +0000 (12:15 -0800)
committerMarco <marpan@google.com>
Fri, 11 Mar 2016 20:20:12 +0000 (12:20 -0800)
The change https://chromium-review.googlesource.com/#/c/329181/
also changed behavior for cbr mode, which causes some regression
in screenshare test in webrtc.

Resetting the specific change to leave the cbr behavior
unchanged for now.

Change-Id: I52df158806422f86398e1d2f522e92067d8325eb

vp9/encoder/vp9_ratectrl.c

index 4ffbe9307b4953319a585abf8cd23d5287eccf46..06f955b23ec511f46966c2957b7589b42a590287 100644 (file)
@@ -2056,7 +2056,7 @@ void vp9_avg_source_sad(VP9_COMP *cpi) {
       rc->high_source_sad = 1;
     else
       rc->high_source_sad = 0;
-    if (avg_sad > 0)
+    if (avg_sad > 0 || cpi->oxcf.rc_mode == VPX_CBR)
       rc->avg_source_sad = (rc->avg_source_sad + avg_sad) >> 1;
     // For VBR, under scene change/high content change, force golden refresh.
     if (cpi->oxcf.rc_mode == VPX_VBR &&