[FFmpeg-devel] [PATCH 2/5] remove unneeded alpha clip

Michael Niedermayer michaelni at gmx.at
Sun Apr 14 12:17:19 CEST 2013


Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
 libswscale/output.c |    4 ----
 1 file changed, 4 deletions(-)

diff --git a/libswscale/output.c b/libswscale/output.c
index 8224620..85f93fa 100644
--- a/libswscale/output.c
+++ b/libswscale/output.c
@@ -1178,10 +1178,6 @@ yuv2rgb_X_c_template(SwsContext *c, const int16_t *lumFilter,
                 A1 += alpSrc[j][i * 2    ] * lumFilter[j];
                 A2 += alpSrc[j][i * 2 + 1] * lumFilter[j];
             }
-            if ((A1 | A2) & 0xF8000000) {
-                A1 = av_clip_uintp2(A1, 27);
-                A2 = av_clip_uintp2(A2, 27);
-            }
             A1 <<= 3;
             A2 <<= 3;
         }
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list