Skip to content

Commit 4557142

Browse files
committed
fix test in true color mode
fixes 0245fd4
1 parent de0f820 commit 4557142

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ngiflib.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ static int DecodeGifImg(struct ngiflib_img * i) {
516516
i->ncolors = 1 << i->localpalbits;
517517

518518
#ifndef NGIFLIB_INDEXED_ONLY
519-
if (!(i->parent->mode & NGIFLIB_MODE_INDEXED)) {
519+
if (!(i->parent->mode & NGIFLIB_MODE_INDEXED) && (i->palette == NULL)) {
520520
#if !defined(NGIFLIB_NO_FILE)
521521
if(i->parent->log) fprintf(i->parent->log, "*** ERROR *** Cannot decode without palette\n");
522522
#endif

0 commit comments

Comments
 (0)