]> granicus.if.org Git - libvpx/commitdiff
Add a reset to rc tracking for dropped frames
authorYaowu Xu <yaowu@google.com>
Wed, 19 Nov 2014 23:32:11 +0000 (15:32 -0800)
committerYaowu Xu <yaowu@google.com>
Wed, 19 Nov 2014 23:32:11 +0000 (15:32 -0800)
VP9/DatarateTestVP9Large.ChangingDropFrameThresh/[34] fails post the
merge of commit#ffa06b37. This commit adds reset of rc tracking info
when frame is dropped, and fixes the causes of the bad interaction
between the tests and the previous commit.

Change-Id: I848acfd9fcb336359662274325190f94aac76eae

vp9/encoder/vp9_ratectrl.c

index f1d4774d110895061000c268ee7879df97f0786c..32acea0ffe4542249eea8ac99a6fdba23ffef220 100644 (file)
@@ -1289,6 +1289,8 @@ void vp9_rc_postencode_update_drop_frame(VP9_COMP *cpi) {
   cpi->common.last_frame_type = cpi->common.frame_type;
   cpi->rc.frames_since_key++;
   cpi->rc.frames_to_key--;
+  cpi->rc.rc_2_frame = 0;
+  cpi->rc.rc_1_frame = 0;
 }
 
 // Use this macro to turn on/off use of alt-refs in one-pass mode.