[gdk-pixbuf] Correctly load files without sequence chunks



commit b7d839f42fd8cb587ecd2b7aaa6c46f54df2174f
Author: ÐÑÑÐÐÐ ÐÐÐÑÐÐÑÐÐ <lrn1986 gmail com>
Date:   Mon Mar 5 20:24:49 2012 +0400

    Correctly load files without sequence chunks
    
    Fixes #671383

 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 fc1a686..c8a3ee8 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 || 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]