diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-02-21 14:51:07 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-02-21 14:51:07 +0100 |
commit | 1f1ef843b5479ca9b1b2504d3a0b8805680ec690 (patch) | |
tree | b7c6ab275973eccee227d32a784f98ab7e7f4151 | |
parent | 6660c598cdfad51cb4d8568935c6af3e13c020e1 (diff) | |
download | ffmpeg-1f1ef843b5479ca9b1b2504d3a0b8805680ec690.tar.gz |
avfilter/vf_perspective: Use av_clip_uint8()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavfilter/vf_perspective.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_perspective.c b/libavfilter/vf_perspective.c index bebe37f936..2f2032e927 100644 --- a/libavfilter/vf_perspective.c +++ b/libavfilter/vf_perspective.c @@ -320,7 +320,7 @@ static int resample_cubic(AVFilterContext *ctx, void *arg, } sum = (sum + (1<<(COEFF_BITS * 2 - 1))) >> (COEFF_BITS * 2); - sum = av_clip(sum, 0, 255); + sum = av_clip_uint8(sum); dst[x + y * dst_linesize] = sum; } } @@ -395,7 +395,7 @@ static int resample_linear(AVFilterContext *ctx, void *arg, } } - sum = av_clip(sum, 0, 255); + sum = av_clip_uint8(sum); dst[x + y * dst_linesize] = sum; } } |