diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2022-02-26 16:09:17 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2022-02-26 16:19:51 +0000 |
commit | 02b1c6de36df8f4cd0b1eea52dafbd8840756f95 (patch) | |
tree | 55ae53d445ca233454dcde333323a89bbf0f4b78 | |
parent | c88d94dfa6b4bb17a2d9855feb686025d1eb5be7 (diff) | |
download | libnsgif-02b1c6de36df8f4cd0b1eea52dafbd8840756f95.tar.gz libnsgif-02b1c6de36df8f4cd0b1eea52dafbd8840756f95.tar.bz2 |
GIF: Don't error for a final partial frame.
-rw-r--r-- | src/gif.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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; |