summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2015-09-22 20:48:15 -0400
committerRonald S. Bultje <rsbultje@gmail.com>2015-09-26 06:42:33 -0400
commit7a4b97e946f5a1fdf9839c11db3331381bb8643c (patch)
tree7388d1ff4338a5b2e3156bc627e6e358a74ce7cc /tests
parent9c3c8d2c56027f2f6dd72daca76a78d309e3acf3 (diff)
downloadffmpeg-streaming-7a4b97e946f5a1fdf9839c11db3331381bb8643c.zip
ffmpeg-streaming-7a4b97e946f5a1fdf9839c11db3331381bb8643c.tar.gz
checkasm: clip vp9 loopfilter test pixels inside allowed bitdepth range.
Diffstat (limited to 'tests')
-rw-r--r--tests/checkasm/vp9dsp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/checkasm/vp9dsp.c b/tests/checkasm/vp9dsp.c
index 46af118..0f45a8b 100644
--- a/tests/checkasm/vp9dsp.c
+++ b/tests/checkasm/vp9dsp.c
@@ -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)
OpenPOWER on IntegriCloud