diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-01-10 20:18:06 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-01-11 21:29:59 +0100 |
commit | bc11580007b454eac090871e30ce04be7d966eb4 (patch) | |
tree | 08b7975047201a6e44c894a0bfc5d9e95b260f98 | |
parent | 8b87fd98256a73509a561992ffe4100db09e223c (diff) | |
download | ffmpeg-bc11580007b454eac090871e30ce04be7d966eb4.tar.gz |
sws: Remove unneeded YUV cliping from yuv2rgb_X_c_template()
This should slightly improve speed.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libswscale/swscale.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c index 74f3c05772..d8861d6c04 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -1133,12 +1133,6 @@ yuv2rgb_X_c_template(SwsContext *c, const int16_t *lumFilter, Y2 >>= 19; U >>= 19; V >>= 19; - if ((Y1 | Y2 | U | V) & 0x100) { - Y1 = av_clip_uint8(Y1); - Y2 = av_clip_uint8(Y2); - U = av_clip_uint8(U); - V = av_clip_uint8(V); - } if (hasAlpha) { A1 = 1 << 18; A2 = 1 << 18; |