Commit 7a4b97e9 authored by Ronald S. Bultje's avatar Ronald S. Bultje

checkasm: clip vp9 loopfilter test pixels inside allowed bitdepth range.

parent 9c3c8d2c
......@@ -97,9 +97,9 @@ static void check_ipred(void)
#define setpx(a,b,c) \
do { \
if (SIZEOF_PIXEL == 1) { \
buf0[(a) + (b) * jstride] = c; \
buf0[(a) + (b) * jstride] = av_clip_uint8(c); \
} else { \
((uint16_t *)buf0)[(a) + (b) * jstride] = c; \
((uint16_t *)buf0)[(a) + (b) * jstride] = av_clip_uintp2(c, bit_depth); \
} \
} while (0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment