diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-10-03 15:11:49 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-10-03 15:11:49 +0000 |
commit | fd5394784abccfa969b7ba469752d0b58333f6dd (patch) | |
tree | dcaf6fc98c03c5671c425569d0827e2a698eb4d1 | |
parent | eed718e4e67739a192fe4135e5dd9148f6abc1e3 (diff) | |
download | gdk-pixbuf-fd5394784abccfa969b7ba469752d0b58333f6dd.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)
-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 7719fe4fd..92147bf7d 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-27 Matthias Clasen <mclasen@redhat.com> * === Released 2.8.4 === diff --git a/gdk-pixbuf/gdk-pixbuf-animation.c b/gdk-pixbuf/gdk-pixbuf-animation.c index ad4777416..e754bfcc4 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 f67dd0355..eb6c8a5de 100644 --- a/gdk-pixbuf/gdk-pixbuf-io.c +++ b/gdk-pixbuf/gdk-pixbuf-io.c @@ -839,7 +839,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 a2a131c4c..8ad3ccb20 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 { |