mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
webp: --compiler warning
warning: writing 4 bytes into a region of size 0 [-Wstringop-overflow=]
This commit is contained in:
parent
3d6fe5ffae
commit
e72b4e6a9b
1 changed files with 1 additions and 0 deletions
|
@ -242,6 +242,7 @@ VP8PredFunc VP8PredLuma16[NUM_B_DC_MODES];
|
|||
#define AVG2(a, b) (((a) + (b) + 1) >> 1)
|
||||
|
||||
static void VE4(uint8_t* dst) { // vertical
|
||||
if (!dst) return;
|
||||
const uint8_t* top = dst - BPS;
|
||||
const uint8_t vals[4] = {
|
||||
(uint8_t)AVG3(top[-1], top[0], top[1]),
|
||||
|
|
Loading…
Add table
Reference in a new issue