overlay: Fix min decimation for width outside limits
Minimum decimation applied is a raw value, rather a log value should
be used.
Change-Id: Ie05dd09bddf66dbade49875ce6d903c11fe9d58c
diff --git a/liboverlay/overlayUtils.cpp b/liboverlay/overlayUtils.cpp
index b772a6e..dd030ef 100644
--- a/liboverlay/overlayUtils.cpp
+++ b/liboverlay/overlayUtils.cpp
@@ -280,10 +280,11 @@
if(src_w > (int) mdpHw.getMaxPipeWidth()) {
//If the client sends us something > what a layer mixer supports
//then it means it doesn't want to use split-pipe but wants us to
- //decimate. A minimum decimation of 2 will ensure that the width is
+ //decimate. A minimum decimation of 1 will ensure that the width is
//always within layer mixer limits.
- if(horzDeci < 2)
- horzDeci = 2;
+ const uint8_t minDeci = 1;
+ if(horzDeci < minDeci)
+ horzDeci = minDeci;
}
}