Commit 51c5b0d9 authored by Jingning Han's avatar Jingning Han

Fix use_prev_frame_mvs assignment

This commit synchronizes the value assigned to cm->use_prev_frame_mvs.
It resolves a potential mismatch between encoder and decoder.

Change-Id: I2208017db73f8a83cbb50027776db8dc67526b44
parent aeb60057
......@@ -2646,7 +2646,8 @@ static void encode_frame_internal(AV1_COMP *cpi) {
init_encode_frame_mb_context(cpi);
cm->use_prev_frame_mvs =
!cm->error_resilient_mode && cm->width == cm->last_width &&
cm->height == cm->last_height && !cm->intra_only && cm->last_show_frame;
cm->height == cm->last_height && !cm->intra_only &&
cm->last_show_frame && (cm->last_frame_type != KEY_FRAME);
// Special case: set prev_mi to NULL when the previous mode info
// context cannot be used.
cm->prev_mi =
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment