Skip to content
Snippets Groups Projects
Commit 92f94fd5 authored by ferdo@bigroses.nl's avatar ferdo@bigroses.nl Committed by Michael Niedermayer
Browse files

libavcodec/hqx: correct clipping error

parent 235589ee
No related branches found
No related tags found
No related merge requests found
...@@ -182,7 +182,7 @@ static void hqx_idct_put(uint16_t *dst, ptrdiff_t stride, ...@@ -182,7 +182,7 @@ static void hqx_idct_put(uint16_t *dst, ptrdiff_t stride,
for (i = 0; i < 8; i++) { for (i = 0; i < 8; i++) {
for (j = 0; j < 8; j++) { 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[j] = (v << 4) | (v >> 8);
} }
dst += stride >> 1; dst += stride >> 1;
......
#tb 0: 1/25 #tb 0: 1/25
0, 0, 0, 1, 8294400, 0x9b38264d 0, 0, 0, 1, 8294400, 0x9a22bebf
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment