mirror of
https://github.com/webmproject/libwebp.git
synced 2025-04-04 16:06:49 +02:00
silence one more warning
inadvertently added in last warning roundup Change-Id: I38e6bcfb18c133f2dc2b38cec81e12d2ff556011
This commit is contained in:
parent
4b71ba035a
commit
3b02309347
@ -234,8 +234,10 @@ static int EncodeAlpha(VP8Encoder* const enc,
|
|||||||
|
|
||||||
// Try the other mode(s).
|
// Try the other mode(s).
|
||||||
{
|
{
|
||||||
WebPAuxStats best_stats = { 0 };
|
WebPAuxStats best_stats;
|
||||||
size_t best_score = VP8BitWriterSize(&bw);
|
size_t best_score = VP8BitWriterSize(&bw);
|
||||||
|
|
||||||
|
memset(&best_stats, 0, sizeof(best_stats)); // prevent spurious warning
|
||||||
if (pic->stats != NULL) best_stats = *pic->stats;
|
if (pic->stats != NULL) best_stats = *pic->stats;
|
||||||
for (test_filter = WEBP_FILTER_HORIZONTAL;
|
for (test_filter = WEBP_FILTER_HORIZONTAL;
|
||||||
ok && (test_filter <= WEBP_FILTER_GRADIENT);
|
ok && (test_filter <= WEBP_FILTER_GRADIENT);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user