diff --git a/vp9/encoder/vp9_mcomp.c b/vp9/encoder/vp9_mcomp.c index 51ca1b6c1..829c22836 100644 --- a/vp9/encoder/vp9_mcomp.c +++ b/vp9/encoder/vp9_mcomp.c @@ -2296,6 +2296,16 @@ unsigned int vp9_int_pro_motion_estimation(const VP9_COMP *cpi, MACROBLOCK *x, // motion search code to be used without additional modifications. for (i = 0; i < MAX_MB_PLANE; i++) backup_yv12[i] = xd->plane[i].pre[0]; vp9_setup_pre_planes(xd, 0, scaled_ref_frame, mi_row, mi_col, NULL); + if (ref_stride != xd->plane[0].pre[0].stride) { + fprintf(stderr, + "[POC] vp9_int_pro_motion_estimation STALE STRIDE: " + "captured ref_stride=%d but scaled pre[0].stride=%d " + "(mi_row=%d mi_col=%d bsize=%d) buf=%p alloc=%p alloc_sz=%zu\n", + ref_stride, xd->plane[0].pre[0].stride, mi_row, mi_col, + (int)bsize, (void *)xd->plane[0].pre[0].buf, + (void *)scaled_ref_frame->buffer_alloc, + (size_t)scaled_ref_frame->buffer_alloc_sz); + } } #if CONFIG_VP9_HIGHBITDEPTH