ref: 53d92e61ccfb3e7b0ad88c05f732101cc5c5b457
parent: 9904c28f5b421592db61b337cd7700544820ba26
author: Yunqing Wang <yunqingwang@google.com>
date: Thu Jun 7 09:57:21 EDT 2012
Fix decimation_count in drop_frame Frame dropping decision is made by evaluating both current frame and next frame's buffer_level. If both buffer_levels are less than drop_mark, next frame is dropped. When frame dropping is over, namely, buffer_level becomes normal again, we need to reset decimation_count to 0. Change-Id: Iae182612e61e0da367fbd43afdc90738d975d1a3
--- a/vp8/encoder/onyx_if.c
+++ b/vp8/encoder/onyx_if.c
@@ -3466,6 +3466,8 @@
else
cpi->decimation_count = cpi->decimation_factor;
}
+ else
+ cpi->decimation_count = 0;
// Decide how big to make the frame
if (!vp8_pick_frame_size(cpi))
--
⑨