diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-02-21 14:50:23 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-02-21 14:50:23 +0100 |
commit | 6660c598cdfad51cb4d8568935c6af3e13c020e1 (patch) | |
tree | 18ee36eb8988441e5677be7cc8c46f6eec9ac817 /libavfilter/vsrc_mptestsrc.c | |
parent | 03bffb68f6df8f4d730542076f8ede8e0cb2495c (diff) | |
download | ffmpeg-6660c598cdfad51cb4d8568935c6af3e13c020e1.tar.gz |
avfilter/vsrc_mptestsrc: Use av_clip_uint8()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/vsrc_mptestsrc.c')
-rw-r--r-- | libavfilter/vsrc_mptestsrc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vsrc_mptestsrc.c b/libavfilter/vsrc_mptestsrc.c index d045704f27..0b80e47e50 100644 --- 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)); } } } |