mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-07 17:26:49 +08:00
MultiplyRow_16_Opt crash on odd width
Bug: libyuv:897 Change-Id: I2e46daf6369dd50bc9f5f138a801b9063b15b855 Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/2809699 Reviewed-by: Mirko Bonadei <mbonadei@chromium.org>
This commit is contained in:
parent
64994843e6
commit
2870320ac6
@ -3248,8 +3248,8 @@ TEST_F(LibYUVPlanarTest, MergeUVRow_16_Opt) {
|
||||
// TODO(fbarchard): Improve test for more platforms.
|
||||
#ifdef HAS_MULTIPLYROW_16_AVX2
|
||||
TEST_F(LibYUVPlanarTest, MultiplyRow_16_Opt) {
|
||||
// Round count up to multiple of 16
|
||||
const int kPixels = (benchmark_width_ * benchmark_height_ + 15) & ~15;
|
||||
// Round count up to multiple of 32
|
||||
const int kPixels = (benchmark_width_ * benchmark_height_ + 31) & ~31;
|
||||
|
||||
align_buffer_page_end(src_pixels_y, kPixels * 2);
|
||||
align_buffer_page_end(dst_pixels_y_opt, kPixels * 2);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user