summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gif.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gif.c b/src/gif.c
index 3eebbd6..db99afd 100644
--- a/src/gif.c
+++ b/src/gif.c
@@ -1517,9 +1517,8 @@ nsgif_error nsgif_data_scan(
ret = nsgif__process_frame(gif, frames, false);
} while (gif->info.frame_count > frames);
- if (ret == NSGIF_ERR_END_OF_DATA &&
- gif->info.frame_count > 0) {
- ret = NSGIF_ERR_END_OF_FRAME;
+ if (ret == NSGIF_ERR_END_OF_DATA && gif->info.frame_count > 0) {
+ ret = NSGIF_OK;
}
return ret;