diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-10-03 15:07:35 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-10-03 15:07:35 +0000 |
commit | 73a27a3cee2b2e3a4735b3639e305e95ece681c4 (patch) | |
tree | fa5a8acc0160c2a2ee5b1b4e095ebfbd226fd069 /gdk-pixbuf | |
parent | ef2c2326f04d5a0a86956ce18d9c15cd3ebf61c1 (diff) | |
download | gdk-pixbuf-73a27a3cee2b2e3a4735b3639e305e95ece681c4.tar.gz |
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)
Diffstat (limited to 'gdk-pixbuf')
-rw-r--r-- | gdk-pixbuf/ChangeLog | 8 | ||||
-rw-r--r-- | gdk-pixbuf/gdk-pixbuf-animation.c | 2 | ||||
-rw-r--r-- | gdk-pixbuf/gdk-pixbuf-io.c | 2 | ||||
-rw-r--r-- | gdk-pixbuf/gdk-pixbuf-loader.c | 2 |
4 files changed, 11 insertions, 3 deletions
diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index 780ea49a1..41b8b7946 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -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 diff --git a/gdk-pixbuf/gdk-pixbuf-animation.c b/gdk-pixbuf/gdk-pixbuf-animation.c index ad510bf2c..ad7e76fc9 100644 --- a/gdk-pixbuf/gdk-pixbuf-animation.c +++ b/gdk-pixbuf/gdk-pixbuf-animation.c @@ -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; diff --git a/gdk-pixbuf/gdk-pixbuf-io.c b/gdk-pixbuf/gdk-pixbuf-io.c index 56dfefe62..ea7894bfe 100644 --- a/gdk-pixbuf/gdk-pixbuf-io.c +++ b/gdk-pixbuf/gdk-pixbuf-io.c @@ -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; diff --git a/gdk-pixbuf/gdk-pixbuf-loader.c b/gdk-pixbuf/gdk-pixbuf-loader.c index 6f9d6461a..78689e58e 100644 --- a/gdk-pixbuf/gdk-pixbuf-loader.c +++ b/gdk-pixbuf/gdk-pixbuf-loader.c @@ -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 { |