ref: 85d8fd18d08f432549169010dc66e8f4117415d9
parent: 0bbf5084576c2a46fb35d98fbfd007e9f8cb69a4
parent: 1f4c8dcf14533ff5c16281fdd38c8890b77814de
author: Jingning Han <jingning@google.com>
date: Thu Aug 23 13:21:27 EDT 2018
Merge "Sync prev_frame/last_show_frame update with decoder"
--- a/vp9/encoder/vp9_encoder.c
+++ b/vp9/encoder/vp9_encoder.c
@@ -4972,7 +4972,10 @@
cm->last_height = cm->height;
// reset to normal state now that we are done.
- if (!cm->show_existing_frame) cm->last_show_frame = cm->show_frame;
+ if (!cm->show_existing_frame) {
+ cm->last_show_frame = cm->show_frame;
+ cm->prev_frame = cm->cur_frame;
+ }
if (cm->show_frame) {
vp9_swap_mi_and_prev_mi(cm);
@@ -4981,7 +4984,6 @@
++cm->current_video_frame;
if (cpi->use_svc) vp9_inc_frame_in_layer(cpi);
}
- cm->prev_frame = cm->cur_frame;
if (cpi->use_svc) {
cpi->svc