We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de0f820 commit 4557142Copy full SHA for 4557142
ngiflib.c
@@ -516,7 +516,7 @@ static int DecodeGifImg(struct ngiflib_img * i) {
516
i->ncolors = 1 << i->localpalbits;
517
518
#ifndef NGIFLIB_INDEXED_ONLY
519
- if (!(i->parent->mode & NGIFLIB_MODE_INDEXED)) {
+ if (!(i->parent->mode & NGIFLIB_MODE_INDEXED) && (i->palette == NULL)) {
520
#if !defined(NGIFLIB_NO_FILE)
521
if(i->parent->log) fprintf(i->parent->log, "*** ERROR *** Cannot decode without palette\n");
522
#endif
0 commit comments