[FFmpeg-devel] [PATCH 8/8] swscale/yuv2rgb: cosmetics

lance.lmwang at gmail.com lance.lmwang at gmail.com
Wed Jul 22 18:27:39 EEST 2020


From: Limin Wang <lance.lmwang at gmail.com>

Signed-off-by: Limin Wang <lance.lmwang at gmail.com>
---
 libswscale/yuv2rgb.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/libswscale/yuv2rgb.c b/libswscale/yuv2rgb.c
index e02d74f..6a3956e 100644
--- a/libswscale/yuv2rgb.c
+++ b/libswscale/yuv2rgb.c
@@ -983,9 +983,10 @@ av_cold int ff_yuv2rgb_c_init_tables(SwsContext *c, const int inv_table[4],
             y_table32[i + 2 * table_plane_size] = yval << bbase;
             yb += cy;
         }
-        if (isNotNe)
-                for (i = 0; i < table_plane_size * 3; i++)
-                    y_table32[i] = av_bswap32(y_table32[i]);
+        if (isNotNe) {
+            for (i = 0; i < table_plane_size * 3; i++)
+                y_table32[i] = av_bswap32(y_table32[i]);
+        }
         fill_table(c->table_rV, 4, crv, y_table32 + yoffs);
         fill_table(c->table_gU, 4, cgu, y_table32 + yoffs + table_plane_size);
         fill_table(c->table_bU, 4, cbu, y_table32 + yoffs + 2 * table_plane_size);
-- 
1.8.3.1



More information about the ffmpeg-devel mailing list