From: James Zern Date: Wed, 12 Apr 2023 20:46:26 +0000 (-0700) Subject: vp9_temporal_filter: clear -Wshadow warnings X-Git-Tag: accepted/tizen/7.0/unified/20240521.012539~1^2~220 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=39a6b6c1364cf9c03ce947f9a98b40b63aef28ca;p=platform%2Fupstream%2Flibvpx.git vp9_temporal_filter: clear -Wshadow warnings Bug: webm:1793 Change-Id: Ia681ce636ae99f95b875ee1b0189bc6fa66a7608 --- diff --git a/vp9/encoder/vp9_temporal_filter.c b/vp9/encoder/vp9_temporal_filter.c index 8af30c4..986553a 100644 --- a/vp9/encoder/vp9_temporal_filter.c +++ b/vp9/encoder/vp9_temporal_filter.c @@ -450,8 +450,6 @@ void vp9_highbd_apply_temporal_filter_c( // Apply the filter to luma for (row = 0; row < (int)block_height; row++) { for (col = 0; col < (int)block_width; col++) { - const int uv_row = row >> ss_y; - const int uv_col = col >> ss_x; const int filter_weight = get_filter_weight( row, col, block_height, block_width, blk_fw, use_32x32); @@ -476,6 +474,8 @@ void vp9_highbd_apply_temporal_filter_c( // Sum the corresponding uv pixels to the current y modifier // Note we are rounding down instead of rounding to the nearest pixel. + uv_row = row >> ss_y; + uv_col = col >> ss_x; y_mod += u_diff_sse[uv_row * uv_diff_stride + uv_col]; y_mod += v_diff_sse[uv_row * uv_diff_stride + uv_col];