[FFmpeg-cvslog] checkasm: clip vp9 loopfilter test pixels inside allowed bitdepth range.

Ronald S. Bultje git at videolan.org
Sat Sep 26 12:49:54 CEST 2015


ffmpeg | branch: master | Ronald S. Bultje <rsbultje at gmail.com> | Tue Sep 22 20:48:15 2015 -0400| [7a4b97e946f5a1fdf9839c11db3331381bb8643c] | committer: Ronald S. Bultje

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7a4b97e946f5a1fdf9839c11db3331381bb8643c
---

 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 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)
 



More information about the ffmpeg-cvslog mailing list