Commit 38068479 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen
Browse files

Remove the pointless refusal to load images with dubious disposal mode on

2003-06-23  Matthias Clasen  <maclas@gmx.de>

	* io-gif.c (gif_get_frame_info): Remove the pointless refusal to load images with dubious
	disposal mode on the first frame. Just ignore it, as everybody else does.
parent e7444133
2003-06-22 Matthias Clasen <matthias@localhost.localdomain>
2003-06-23 Matthias Clasen <maclas@gmx.de>
* io-gif.c (gif_get_frame_info): Remove the pointless refusal to load images with dubious
disposal mode on the first frame. Just ignore it, as everybody else does.
2003-06-22 Matthias Clasen <maclas@gmx.de>
* gdk-pixbuf-loader.[hc] (gdk_pixbuf_loader_new_with_mime_type): New function to obtain a loader for a specific mime
type. (#105324, Dom Lachowicz)
......
......@@ -1227,17 +1227,9 @@ gif_get_frame_info (GifContext *context)
if (context->animation->frames == NULL &&
context->gif89.disposal == 3) {
/* First frame can't have "revert to previous" as its
* dispose mode.
* dispose mode. Silently use "retain" instead.
*/
context->state = GIF_DONE;
g_set_error (context->error,
GDK_PIXBUF_ERROR,
GDK_PIXBUF_ERROR_CORRUPT_IMAGE,
_("First frame of GIF image had 'revert to previous' as its disposal mode."));
return -2;
context->gif89.disposal = 0;
}
context->frame_interlace = BitSet (buf[8], INTERLACE);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment