mirror of
https://github.com/webmproject/libwebp.git
synced 2025-12-23 21:46:26 +01:00
idec_dec.c: add missing WEBP_SELF_ASSIGN
Fixes coverity / static analysis warning:
Assigning "dec->alpha_data_size" to itself has no effect.
Missed in:
b81f4620 Fix -fbounds-safety errors in `dec`.
Change-Id: I0aa447dff47f1687bf1ef358a9d53f893b64bf68
This commit is contained in:
@@ -155,7 +155,7 @@ static void DoRemap(WebPIDecoder* const idec, ptrdiff_t offset) {
|
||||
if (NeedCompressedAlpha(idec)) {
|
||||
ALPHDecoder* const alph_dec = dec->alph_dec;
|
||||
dec->alpha_data += offset;
|
||||
dec->alpha_data_size = dec->alpha_data_size;
|
||||
WEBP_SELF_ASSIGN(dec->alpha_data_size);
|
||||
if (alph_dec != NULL && alph_dec->vp8l_dec != NULL) {
|
||||
if (alph_dec->method == ALPHA_LOSSLESS_COMPRESSION) {
|
||||
VP8LDecoder* const alph_vp8l_dec = alph_dec->vp8l_dec;
|
||||
|
||||
Reference in New Issue
Block a user