From 971c5a16a935afb5596215e3c33f66fa1c987884 Mon Sep 17 00:00:00 2001 From: James Zern Date: Thu, 19 May 2016 19:19:19 -0700 Subject: [PATCH] vp8/error_concealment: remove shift of negative value fixes: shifting a negative signed value is undefined [-Wshift-negative-value] Change-Id: I3a55f2dac7c51c0e264d40081ffce98e2abacb89 --- vp8/decoder/error_concealment.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vp8/decoder/error_concealment.c b/vp8/decoder/error_concealment.c index 0b846a08b..fbfae61e7 100644 --- a/vp8/decoder/error_concealment.c +++ b/vp8/decoder/error_concealment.c @@ -194,7 +194,7 @@ void vp8_calculate_overlaps(MB_OVERLAP *overlap_ul, return; } - if (new_row <= (-4 << 3) || new_col <= (-4 << 3)) + if (new_row <= -32 || new_col <= -32) { /* outside the frame */ return;