aboutsummaryrefslogtreecommitdiff
path: root/source/planar_functions.cc
diff options
context:
space:
mode:
authorFrank Barchard <fbarchard@google.com>2022-12-05 16:10:38 -0800
committerlibyuv LUCI CQ <libyuv-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-12-06 19:54:40 +0000
commit610e0cdead3fcd3288693d18eab8c7323805ad9e (patch)
tree6b1b50bd731fdfe47a81a13acf4fbf16f75360b0 /source/planar_functions.cc
parentc19943b4d00b1f44cc2158d3332e4450d69353ae (diff)
downloadlibyuv-610e0cdead3fcd3288693d18eab8c7323805ad9e.tar.gz
MT2T Warning fixes for fuchsia
Bug: b/258474032, b/257266635 Change-Id: Ic5cbbc60e2e1463361e359a2fe3e97976c1ea929 Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/4081348 Commit-Queue: Frank Barchard <fbarchard@chromium.org> Reviewed-by: Justin Green <greenjustin@google.com>
Diffstat (limited to 'source/planar_functions.cc')
-rw-r--r--source/planar_functions.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/planar_functions.cc b/source/planar_functions.cc
index 96914e08..f43525d5 100644
--- a/source/planar_functions.cc
+++ b/source/planar_functions.cc
@@ -3196,6 +3196,7 @@ int RAWToRGB24(const uint8_t* src_raw,
return 0;
}
+// TODO(fbarchard): Consider uint8_t value
LIBYUV_API
void SetPlane(uint8_t* dst_y,
int dst_stride_y,
@@ -3256,7 +3257,7 @@ void SetPlane(uint8_t* dst_y,
// Set plane
for (y = 0; y < height; ++y) {
- SetRow(dst_y, value, width);
+ SetRow(dst_y, (uint8_t)value, width);
dst_y += dst_stride_y;
}
}