diff options
author | Руслан Ижбулатов <lrn1986@gmail.com> | 2012-03-05 20:24:49 +0400 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2012-03-05 19:51:15 +0100 |
commit | b7d839f42fd8cb587ecd2b7aaa6c46f54df2174f (patch) | |
tree | 6f80727d35a6405024ebd3c3bc8a8f78f534a0da | |
parent | 9195f0e084ba988be90401289cda25b6cbae171c (diff) | |
download | gdk-pixbuf-b7d839f42fd8cb587ecd2b7aaa6c46f54df2174f.tar.gz |
Correctly load files without sequence chunks
Fixes #671383
-rw-r--r-- | gdk-pixbuf/io-ani.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/gdk-pixbuf/io-ani.c b/gdk-pixbuf/io-ani.c index fc1a68604..c8a3ee833 100644 --- a/gdk-pixbuf/io-ani.c +++ b/gdk-pixbuf/io-ani.c @@ -330,13 +330,7 @@ ani_load_chunk (AniLoaderContext *context, GError **error) (context->Flags & 0x1) != 0); #endif if (!(context->Flags & 0x2)) - { - g_set_error_literal (error, - GDK_PIXBUF_ERROR, - GDK_PIXBUF_ERROR_CORRUPT_IMAGE, - _("Unsupported animation type")); - return FALSE; - } + context->NumSteps = context->NumFrames; if (context->NumFrames == 0 || context->NumFrames >= 1024 || context->NumSteps == 0 || |