Commit bc115800 authored by Michael Niedermayer's avatar Michael Niedermayer

sws: Remove unneeded YUV cliping from yuv2rgb_X_c_template()

This should slightly improve speed.
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 8b87fd98
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment