diff options
author | trav90 <travawine@palemoon.org> | 2022-05-30 14:44:19 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2022-05-30 14:49:22 -0500 |
commit | 8510f335c3ff39c207d8cb906da3eb91cd73d75a (patch) | |
tree | 88bc89f66bc6b15e27dab678d34c43aaad75de80 /libs/ffvpx/libavcodec/videodsp_template.c | |
parent | f11b40c3ab4a5a766b0b71ab1e9a6199b23bbfeb (diff) | |
download | aura-central-8510f335c3ff39c207d8cb906da3eb91cd73d75a.tar.gz |
[Libs:ffvpx] Update FFVPX to version 4.2.7
Diffstat (limited to 'libs/ffvpx/libavcodec/videodsp_template.c')
-rw-r--r-- | libs/ffvpx/libavcodec/videodsp_template.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/ffvpx/libavcodec/videodsp_template.c b/libs/ffvpx/libavcodec/videodsp_template.c index 94c1b7188..55123a584 100644 --- a/libs/ffvpx/libavcodec/videodsp_template.c +++ b/libs/ffvpx/libavcodec/videodsp_template.c @@ -44,7 +44,8 @@ void FUNC(ff_emulated_edge_mc)(uint8_t *buf, const uint8_t *src, src_y = 1 - block_h; } if (src_x >= w) { - src += (w - 1 - src_x) * sizeof(pixel); + // The subtracted expression has an unsigned type and must thus not be negative + src -= (1 + src_x - w) * sizeof(pixel); src_x = w - 1; } else if (src_x <= -block_w) { src += (1 - block_w - src_x) * sizeof(pixel); |