diff options
author | Limin Wang | 2020-07-22 00:07:50 +0800 |
---|---|---|
committer | Limin Wang | 2020-07-25 10:20:42 +0800 |
commit | 7c8ad72f1ce2ae747edd5c3f49bb052b1586c90f (patch) | |
tree | 2a9e962551abdc8fc3c9c416dbdde57a65d4e071 /libswscale | |
parent | bae2ae62baebd15473babca7700fe7b95ee2135d (diff) |
swscale/yuv2rgb: cosmetics
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Diffstat (limited to 'libswscale')
-rw-r--r-- | libswscale/yuv2rgb.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libswscale/yuv2rgb.c b/libswscale/yuv2rgb.c index e02d74f2c3..6a3956e8e2 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); |