aboutsummaryrefslogtreecommitdiff
path: root/image/codecs/indeo/mem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'image/codecs/indeo/mem.cpp')
-rw-r--r--image/codecs/indeo/mem.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/image/codecs/indeo/mem.cpp b/image/codecs/indeo/mem.cpp
index 89f2af7ad2..326729b27d 100644
--- a/image/codecs/indeo/mem.cpp
+++ b/image/codecs/indeo/mem.cpp
@@ -166,13 +166,17 @@ uint16 invertBits(uint16 val, int nbits) {
}
uint8 avClipUint8(int a) {
- if (a&(~0xFF)) return (-a) >> 31;
- else return a;
+ if (a & (~0xFF))
+ return (-a) >> 31;
+ else
+ return a;
}
unsigned avClipUintp2(int a, int p) {
- if (a & ~((1 << p) - 1)) return -a >> 31 & ((1 << p) - 1);
- else return a;
+ if (a & ~((1 << p) - 1))
+ return -a >> 31 & ((1 << p) - 1);
+ else
+ return a;
}
} // End of namespace Indeo