From 0af5ff49bdb7f5b7c54b18d5225e63739ea859ca Mon Sep 17 00:00:00 2001 From: Adrian Grange Date: Wed, 6 May 2015 14:44:24 -0700 Subject: [PATCH] Reduce border extension by 1 line The code was using one row too many. Change-Id: Ie0c05d02c22ae3d0d13d3b6565c40de3bc4fa17a --- vp9/decoder/vp9_decodeframe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vp9/decoder/vp9_decodeframe.c b/vp9/decoder/vp9_decodeframe.c index eb9b79710..e4e7e6264 100644 --- a/vp9/decoder/vp9_decodeframe.c +++ b/vp9/decoder/vp9_decodeframe.c @@ -1973,7 +1973,7 @@ void dec_build_inter_predictors(VP9Decoder *const pbi, MACROBLOCKD *xd, // Wait until reference block is ready. Pad 7 more pixels as last 7 // pixels of each superblock row can be changed by next superblock row. if (pbi->frame_parallel_decode) { - const int y1 = ((y0_16 + (h - 1) * ys) >> SUBPEL_BITS) + 1; + const int y1 = (y0_16 + (h - 1) * ys) >> SUBPEL_BITS; vp9_frameworker_wait(pbi->frame_worker_owner, ref_frame_buf, MAX(0, (y1 + 7)) << (plane == 0 ? 0 : 1)); }