diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2022-03-03 13:33:42 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2022-03-03 19:15:28 +0000 |
commit | e1695e96b0ecc60327f8cb287517f6009eb8ddc8 (patch) | |
tree | ed74222e9c28ced43550bcd78b03f76fcd3e69c9 | |
parent | 81e55f826dba3b749fd20f3bbd1d42ca42494732 (diff) | |
download | libnsgif-e1695e96b0ecc60327f8cb287517f6009eb8ddc8.tar.gz libnsgif-e1695e96b0ecc60327f8cb287517f6009eb8ddc8.tar.bz2 |
API: Single error code for end of data.
-rw-r--r-- | include/nsgif.h | 7 | ||||
-rw-r--r-- | src/gif.c | 3 |
2 files changed, 2 insertions, 8 deletions
diff --git a/include/nsgif.h b/include/nsgif.h index fe11d29..a8f384c 100644 --- a/include/nsgif.h +++ b/include/nsgif.h @@ -82,16 +82,11 @@ typedef enum { NSGIF_ERR_FRAME_COUNT, /** - * GIF source data ended without one complete frame available. + * Unexpected end of GIF source data. */ NSGIF_ERR_END_OF_DATA, /** - * GIF source data ended with incomplete frame. - */ - NSGIF_ERR_END_OF_FRAME, - - /** * The current frame cannot be displayed. */ NSGIF_ERR_FRAME_DISPLAY, @@ -1761,8 +1761,7 @@ const char *nsgif_strerror(nsgif_error err) [NSGIF_ERR_BAD_FRAME] = "Requested frame does not exist", [NSGIF_ERR_DATA_FRAME] = "Invalid frame data", [NSGIF_ERR_FRAME_COUNT] = "Excessive number of frames", - [NSGIF_ERR_END_OF_DATA] = "Insufficient data for first frame", - [NSGIF_ERR_END_OF_FRAME] = "End of data during frame", + [NSGIF_ERR_END_OF_DATA] = "Unexpected end of GIF source data", [NSGIF_ERR_FRAME_DISPLAY] = "Frame can't be displayed", [NSGIF_ERR_ANIMATION_END] = "Animation complete", }; |