mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-28 14:38:21 +01:00
gif2webp: Fix signed/unsigned comparison mismatch
Change-Id: I355f0614424276550db71b24e5bb1948e5c6894c
(cherry picked from commit 043e1ae4bd
)
This commit is contained in:
parent
31f346fe0c
commit
eda8a7dec5
@ -432,7 +432,7 @@ int main(int argc, const char *argv[]) {
|
|||||||
}
|
}
|
||||||
if (is_xmp) {
|
if (is_xmp) {
|
||||||
// XMP padding data is 0x01, 0xff, 0xfe ... 0x01, 0x00.
|
// XMP padding data is 0x01, 0xff, 0xfe ... 0x01, 0x00.
|
||||||
const int xmp_pading_size = 257;
|
const size_t xmp_pading_size = 257;
|
||||||
if (metadata.size > xmp_pading_size) {
|
if (metadata.size > xmp_pading_size) {
|
||||||
metadata.size -= xmp_pading_size;
|
metadata.size -= xmp_pading_size;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user