Do not reuse mv in base spatial layer if curr buf same as prev.

Bug: b/154890543
Change-Id: Iad5791912f781d225e610a61bc13f3dbaef81bb9
This commit is contained in:
Jerome Jiang
2021-01-21 13:07:20 -08:00
parent b5d77a48d7
commit 7b93b56ab9
+5 -2
View File
@@ -7861,9 +7861,12 @@ int vp9_get_compressed_data(VP9_COMP *cpi, unsigned int *frame_flags,
cm->new_fb_idx = get_free_fb(cm);
if (cm->new_fb_idx == INVALID_IDX) return -1;
cm->cur_frame = &pool->frame_bufs[cm->new_fb_idx];
// If the frame buffer for current frame is the same as previous frame, MV in
// the base layer shouldn't be used as it'll cause data race.
if (cm->cur_frame == cm->prev_frame) {
cpi->svc.use_base_mv = 0;
}
// Start with a 0 size frame.
*size = 0;