mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 22:28:22 +01:00
gif2webp: fix compile with giflib 5.1.0
DGifCloseFile() added an error code output parameter http://giflib.sourceforge.net/gif_lib.html#compatibility fixes issue #209 original patch by grizzly dot nyo at gmail Change-Id: I5554de2bd70dbfd95fd356424ad5fb800ac94592
This commit is contained in:
parent
222f9b1a9d
commit
b8984f3151
@ -690,7 +690,11 @@ int main(int argc, const char *argv[]) {
|
|||||||
DisplayGifError(gif, gif_error);
|
DisplayGifError(gif, gif_error);
|
||||||
}
|
}
|
||||||
if (gif != NULL) {
|
if (gif != NULL) {
|
||||||
|
#if LOCAL_GIF_PREREQ(5,1)
|
||||||
|
DGifCloseFile(gif, &gif_error);
|
||||||
|
#else
|
||||||
DGifCloseFile(gif);
|
DGifCloseFile(gif);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
return !ok;
|
return !ok;
|
||||||
|
Loading…
Reference in New Issue
Block a user