Add support giflib 5.1

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
(cherry picked from commit 1becbbdcac)
r14.0.x r14.0.3
Slávek Banko 9 years ago
parent 44ada1e19e
commit cbfc8a115a

@ -567,7 +567,13 @@ void fmt_codec::read_close()
finfo.meta.clear(); finfo.meta.clear();
finfo.image.clear(); finfo.image.clear();
if(gif) DGifCloseFile(gif); if(gif) {
#if defined(GIFLIB_MAJOR) && (GIFLIB_MAJOR > 5 || (GIFLIB_MAJOR == 5 && GIFLIB_MINOR >= 1))
DGifCloseFile(gif, NULL);
#else
DGifCloseFile(gif);
#endif
}
} }
#include "fmt_codec_cd_func.h" #include "fmt_codec_cd_func.h"

Loading…
Cancel
Save