--- tests/checkasm/vp9dsp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/checkasm/vp9dsp.c b/tests/checkasm/vp9dsp.c index 43fa3a4..692376f 100644 --- a/tests/checkasm/vp9dsp.c +++ b/tests/checkasm/vp9dsp.c @@ -370,9 +370,9 @@ static void check_itxfm(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) -- 2.1.2 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel