diff options
author | Clément Bœsch <u@pkh.me> | 2014-09-16 10:08:09 +0200 |
---|---|---|
committer | Clément Bœsch <clement@stupeflix.com> | 2014-09-16 16:57:20 +0200 |
commit | d469aa8cfaa9ab6dceb9b8e5d072acc4b20aac8c (patch) | |
tree | 67adca7d07e30b83ba62ba123f2cb48ddf53de75 | |
parent | de0e49c2450f3c59dd746e59a713fb9313369441 (diff) | |
download | ffmpeg-streaming-d469aa8cfaa9ab6dceb9b8e5d072acc4b20aac8c.zip ffmpeg-streaming-d469aa8cfaa9ab6dceb9b8e5d072acc4b20aac8c.tar.gz |
sws: use av_clip() instead of av_clip_c()
-rw-r--r-- | libswscale/swscale.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c index 59ead12..e54d448 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -804,9 +804,9 @@ static void xyz12Torgb48(struct SwsContext *c, uint16_t *dst, c->xyz2rgb_matrix[2][2] * z >> 12; // limit values to 12-bit depth - r = av_clip_c(r,0,4095); - g = av_clip_c(g,0,4095); - b = av_clip_c(b,0,4095); + r = av_clip(r, 0, 4095); + g = av_clip(g, 0, 4095); + b = av_clip(b, 0, 4095); // convert from sRGBlinear to RGB and scale from 12bit to 16bit if (desc->flags & AV_PIX_FMT_FLAG_BE) { @@ -860,9 +860,9 @@ static void rgb48Toxyz12(struct SwsContext *c, uint16_t *dst, c->rgb2xyz_matrix[2][2] * b >> 12; // limit values to 12-bit depth - x = av_clip_c(x,0,4095); - y = av_clip_c(y,0,4095); - z = av_clip_c(z,0,4095); + x = av_clip(x, 0, 4095); + y = av_clip(y, 0, 4095); + z = av_clip(z, 0, 4095); // convert from XYZlinear to X'Y'Z' and scale from 12bit to 16bit if (desc->flags & AV_PIX_FMT_FLAG_BE) { |