summaryrefslogtreecommitdiff
path: root/libavcodec/hqx.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-04-10 12:32:44 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-04-10 12:38:03 +0200
commit599dc8fee18f997fd79272fc43b71cdedd7fbba0 (patch)
treed3704ab6ac48a29d464073044d7205ff9cd92816 /libavcodec/hqx.c
parent3553b815f66cb42f79706d6be5c11c0b13d9ac2e (diff)
downloadffmpeg-599dc8fee18f997fd79272fc43b71cdedd7fbba0.tar.gz
avcodec/hqx: Use av_clip_uintp2()
Suggested-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/hqx.c')
-rw-r--r--libavcodec/hqx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/hqx.c b/libavcodec/hqx.c
index 1e5a0186df..13c74f97e8 100644
--- a/libavcodec/hqx.c
+++ b/libavcodec/hqx.c
@@ -182,7 +182,7 @@ static void hqx_idct_put(uint16_t *dst, ptrdiff_t stride,
for (i = 0; i < 8; i++) {
for (j = 0; j < 8; j++) {
- int v = av_clip(block[j + i * 8] + 0x800, 0, 0xFFF);
+ int v = av_clip_uintp2(block[j + i * 8] + 0x800, 12);
dst[j] = (v << 4) | (v >> 8);
}
dst += stride >> 1;