summaryrefslogtreecommitdiff
path: root/libavcodec/hqx.c
diff options
context:
space:
mode:
authorferdo@bigroses.nl <ferdo@bigroses.nl>2015-04-07 12:42:17 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-04-08 09:53:59 +0200
commit92f94fd5dd8b256c5633eda655dda4782eca2ad8 (patch)
tree818332d9962cd3a988e90330a5e02bc52964cda9 /libavcodec/hqx.c
parent235589ee9e9adfe2eca517fdd6239e975a5ba2c6 (diff)
libavcodec/hqx: correct clipping error
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 d7e605f63e..2407b7b9f1 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, 0x1000);
+ int v = av_clip(block[j + i * 8] + 0x800, 0, 0xFFF);
dst[j] = (v << 4) | (v >> 8);
}
dst += stride >> 1;