forked from AuroraMiddleware/gtk
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:
parent
ef2c2326f0
commit
73a27a3cee
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user