ref: c094391e954aa274b9dcce3d6afcb5ba6bae7eff
parent: 5a0242ba5c8fddbf32766bfa2ffbbd25f3cd6167
author: Jerome Jiang <jianj@google.com>
date: Tue Sep 10 12:42:32 EDT 2019
vpx_clear_system_state after drop due to overshoot BUG=999780 Change-Id: I096fdc22812eab22a38a33135c0cbe60a6e64add
--- a/vp8/encoder/onyx_if.c
+++ b/vp8/encoder/onyx_if.c
@@ -3958,7 +3958,10 @@
vp8_encode_frame(cpi);
if (cpi->pass == 0 && cpi->oxcf.end_usage == USAGE_STREAM_FROM_SERVER) {
- if (vp8_drop_encodedframe_overshoot(cpi, Q)) return;
+ if (vp8_drop_encodedframe_overshoot(cpi, Q)) {
+ vpx_clear_system_state();
+ return;
+ }
if (cm->frame_type != KEY_FRAME)
cpi->last_pred_err_mb =
(int)(cpi->mb.prediction_error / cpi->common.MBs);