You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
checkasm: clip vp9 loopfilter test pixels inside allowed bitdepth range.
This commit is contained in:
@@ -97,9 +97,9 @@ static void check_ipred(void)
|
|||||||
#define setpx(a,b,c) \
|
#define setpx(a,b,c) \
|
||||||
do { \
|
do { \
|
||||||
if (SIZEOF_PIXEL == 1) { \
|
if (SIZEOF_PIXEL == 1) { \
|
||||||
buf0[(a) + (b) * jstride] = c; \
|
buf0[(a) + (b) * jstride] = av_clip_uint8(c); \
|
||||||
} else { \
|
} else { \
|
||||||
((uint16_t *)buf0)[(a) + (b) * jstride] = c; \
|
((uint16_t *)buf0)[(a) + (b) * jstride] = av_clip_uintp2(c, bit_depth); \
|
||||||
} \
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user