OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03bffb6
)
avfilter/vsrc_mptestsrc: Use av_clip_uint8()
author
Michael Niedermayer
<michaelni@gmx.at>
Sat, 21 Feb 2015 13:50:23 +0000
(14:50 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sat, 21 Feb 2015 13:50:23 +0000
(14:50 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/vsrc_mptestsrc.c
patch
|
blob
|
history
diff --git
a/libavfilter/vsrc_mptestsrc.c
b/libavfilter/vsrc_mptestsrc.c
index
d045704
..
0b80e47
100644
(file)
--- a/
libavfilter/vsrc_mptestsrc.c
+++ b/
libavfilter/vsrc_mptestsrc.c
@@
-121,7
+121,7
@@
static void idct(uint8_t *dst, int dst_linesize, int src[64])
for (k = 0; k < 8; k++)
sum += c[k*8+i]*tmp[8*k+j];
- dst[dst_linesize*i + j] = av_clip
((int)floor(sum+0.5), 0, 255
);
+ dst[dst_linesize*i + j] = av_clip
_uint8((int)floor(sum+0.5)
);
}
}
}