summaryrefslogtreecommitdiff
path: root/libavcodec/hqx.c
diff options
context:
space:
mode:
authorFerdinand Oeinck <ferdo@bigroses.nl>2015-04-07 12:42:17 +0200
committerVittorio Giovara <vittorio.giovara@gmail.com>2015-04-09 13:52:04 +0200
commit0266988ccd15436eaf5f7bb6f9509e6bfd5ce589 (patch)
treefa7279640149d8cd0bc5d69d70d685f8c4381d2a /libavcodec/hqx.c
parent783df7d5c5ab15f3d1afe2541c7d461c81c5c29d (diff)
hqx: Fix clipping error in idct put function
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
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 3feb2871d3..3de3dc2e62 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;