diff options
author | Frank Barchard <fbarchard@google.com> | 2023-03-15 23:32:20 -0700 |
---|---|---|
committer | libyuv LUCI CQ <libyuv-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-03-16 06:57:20 +0000 |
commit | 3f219a3501e555ffef7aeaa90abbaf90a90d2258 (patch) | |
tree | d66d3b0dc4a757fd016ebed0c030d637624ac922 /source/convert.cc | |
parent | 76468711d5c8302431a900499ff73d34fdfc146b (diff) | |
download | libyuv-3f219a3501e555ffef7aeaa90abbaf90a90d2258.tar.gz |
GCC warning fix for MT2T
- Fix redundent assignment compile warning in GCC
- Apply clang-format
- Bump version to 1863
Bug: libyuv:955
Change-Id: If2b6588cd5a7f068a1745fe7763e90caa7277101
Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/4344729
Commit-Queue: Frank Barchard <fbarchard@chromium.org>
Reviewed-by: Mirko Bonadei <mbonadei@chromium.org>
Diffstat (limited to 'source/convert.cc')
-rw-r--r-- | source/convert.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/convert.cc b/source/convert.cc index 37b7091b..0bcfbf20 100644 --- a/source/convert.cc +++ b/source/convert.cc @@ -801,10 +801,9 @@ int MT2TToP010(const uint8_t* src_y, } { - int u_width = (width + 1) / 2; - int uv_width = 2 * u_width; + int uv_width = (width + 1) & ~1; + int uv_height = (height + 1) / 2; int y = 0; - int uv_height = uv_height = (height + 1) / 2; const int tile_width = 16; const int y_tile_height = 32; const int uv_tile_height = 16; |