mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-02-13 19:05:37 +00:00
avcodec/hqx: Use av_clip_uintp2()
Suggested-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
3553b815f6
commit
599dc8fee1
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue