summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libnsgif.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/libnsgif.c b/src/libnsgif.c
index 4da811b..a71d4db 100644
--- a/src/libnsgif.c
+++ b/src/libnsgif.c
@@ -876,14 +876,6 @@ gif_clear_frame(gif_animation *gif, uint32_t frame)
gif_end = gif->gif_data + gif->buffer_size;
gif_bytes = (gif_end - gif_data);
- /*
- * Ensure there is a minimal amount of data to proceed. The shortest
- * block of data is a 10-byte image descriptor + 1-byte gif trailer
- */
- if (gif_bytes < 12) {
- return GIF_INSUFFICIENT_FRAME_DATA;
- }
-
/* Save the buffer position */
save_buffer_position = gif->buffer_position;
gif->buffer_position = gif_data - gif->gif_data;