aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arm_compute/core/Utils.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arm_compute/core/Utils.h b/arm_compute/core/Utils.h
index 1c02e89ab6..e2c1ba938b 100644
--- a/arm_compute/core/Utils.h
+++ b/arm_compute/core/Utils.h
@@ -751,13 +751,13 @@ inline TensorShape adjust_odd_shape(const TensorShape &shape, Format format)
// Force width to be even for formats which require subsampling of the U and V channels
if(has_format_horizontal_subsampling(format))
{
- output.set(0, output.x() & ~1U);
+ output.set(0, (output.x() + 1) & ~1U);
}
// Force height to be even for formats which require subsampling of the U and V channels
if(has_format_vertical_subsampling(format))
{
- output.set(1, output.y() & ~1U);
+ output.set(1, (output.y() + 1) & ~1U);
}
return output;