[FFmpeg-devel] [PATCH 01/24] sws: remove unnecessary braces

Anton Khirnov anton at khirnov.net
Mon May 31 10:54:52 EEST 2021


There used to be more code inside them, but it was removed in
6de58b49032a206985602effec91e5e46c886ea2.
---
 libswscale/swscale.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index 12160a169a..6b73c71e41 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -487,10 +487,8 @@ static int swscale(SwsContext *c, const uint8_t *src[],
                            yuv2packed1, yuv2packed2, yuv2packedX, yuv2anyX, use_mmx_vfilter);
         }
 
-        {
-            for (i = vStart; i < vEnd; ++i)
-                desc[i].process(c, &desc[i], dstY, 1);
-        }
+        for (i = vStart; i < vEnd; ++i)
+            desc[i].process(c, &desc[i], dstY, 1);
     }
     if (isPlanar(dstFormat) && isALPHA(dstFormat) && !needAlpha) {
         int length = dstW;
-- 
2.30.2



More information about the ffmpeg-devel mailing list