From: Zoe Liu Date: Thu, 31 Dec 2015 01:16:51 +0000 (-0800) Subject: Replaced a hard-coded value with the macro X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9581f3d49ae642cd3696d7a08366484aa578334c;p=libvpx Replaced a hard-coded value with the macro Change-Id: I2aec63d8a600e319d037b764b0609092bce1e483 --- diff --git a/vp10/encoder/encoder.c b/vp10/encoder/encoder.c index 704217467..a3982e3ce 100644 --- a/vp10/encoder/encoder.c +++ b/vp10/encoder/encoder.c @@ -3158,7 +3158,7 @@ static void set_frame_size(VP10_COMP *cpi) { init_motion_estimation(cpi); for (ref_frame = LAST_FRAME; ref_frame <= ALTREF_FRAME; ++ref_frame) { - RefBuffer *const ref_buf = &cm->frame_refs[ref_frame - 1]; + RefBuffer *const ref_buf = &cm->frame_refs[ref_frame - LAST_FRAME]; const int buf_idx = get_ref_frame_buf_idx(cpi, ref_frame); ref_buf->idx = buf_idx;