projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9c3c8d2
)
checkasm: clip vp9 loopfilter test pixels inside allowed bitdepth range.
author
Ronald S. Bultje
<rsbultje@gmail.com>
Wed, 23 Sep 2015 00:48:15 +0000
(20:48 -0400)
committer
Ronald S. Bultje
<rsbultje@gmail.com>
Sat, 26 Sep 2015 10:42:33 +0000
(06:42 -0400)
tests/checkasm/vp9dsp.c
patch
|
blob
|
history
diff --git
a/tests/checkasm/vp9dsp.c
b/tests/checkasm/vp9dsp.c
index
46af118
..
0f45a8b
100644
(file)
--- 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) { \
#define setpx(a,b,c) \
do { \
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)