ref: e86d886a3902e4cc3f4803093eb8ea0bcd7560e0
parent: 26e5014567ffa08a6486da10b0283b88b378cc27
parent: 15be44a58fb6148f24f60ccb51683301dd7ecd20
author: Marco Paniconi <[email protected]>
date: Fri Mar 11 18:24:16 EST 2016
Merge "vp9: Fix issue in scene/content change detection."
--- a/vp9/encoder/vp9_ratectrl.c
+++ b/vp9/encoder/vp9_ratectrl.c
@@ -2056,7 +2056,7 @@
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 &&