Use a 1k buffer for sniffing image formats, instead of 128 or 256 bytes.

2005-10-03  Matthias Clasen  <mclasen@redhat.com>

	* gdk-pixbuf-animation.c (gdk_pixbuf_animation_new_from_file):
	* gdk-pixbuf-io.c (gdk_pixbuf_new_from_file):
	* gdk-pixbuf-loader.c: Use a 1k buffer for sniffing image formats,
	instead of 128 or 256 bytes.  (#317225, Sebastien Bacher,
	Dom Lachowicz)
This commit is contained in:
Matthias Clasen 2005-10-03 15:07:35 +00:00 committed by Matthias Clasen
parent ef2c2326f0
commit 73a27a3cee
4 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,11 @@
2005-10-03 Matthias Clasen <mclasen@redhat.com>
* gdk-pixbuf-animation.c (gdk_pixbuf_animation_new_from_file):
* gdk-pixbuf-io.c (gdk_pixbuf_new_from_file):
* gdk-pixbuf-loader.c: Use a 1k buffer for sniffing image formats,
instead of 128 or 256 bytes. (#317225, Sebastien Bacher,
Dom Lachowicz)
2005-09-05 Matthias Clasen <mclasen@redhat.com>
* io-tga.c (parse_rle_data): Remove unused variable

View File

@ -136,7 +136,7 @@ gdk_pixbuf_animation_new_from_file (const char *filename,
GdkPixbufAnimation *animation;
int size;
FILE *f;
guchar buffer [128];
guchar buffer [1024];
GdkPixbufModule *image_module;
gchar *display_name;
gboolean locked = FALSE;

View File

@ -840,7 +840,7 @@ gdk_pixbuf_new_from_file (const char *filename,
GdkPixbuf *pixbuf;
int size;
FILE *f;
guchar buffer[256];
guchar buffer[1024];
GdkPixbufModule *image_module;
gchar *display_name;

View File

@ -52,7 +52,7 @@ static guint pixbuf_loader_signals[LAST_SIGNAL] = { 0 };
/* Internal data */
#define LOADER_HEADER_SIZE 128
#define LOADER_HEADER_SIZE 1024
typedef struct
{