--- gdk-pixbuf-2.31.4/gdk-pixbuf/gdk-pixbuf-loader.c	2014-10-23 07:23:51.000000000 +0530
+++ gdk-pixbuf-2.31.4_new/gdk-pixbuf/gdk-pixbuf-loader.c	2015-05-26 16:31:08.509118160 +0530
@@ -330,7 +330,7 @@
         else
                 anim = gdk_pixbuf_non_anim_new (pixbuf);
   
-	if (priv->needs_scale) {
+	if (priv->needs_scale && width != 0 && height != 0) {
 		priv->animation  = GDK_PIXBUF_ANIMATION (_gdk_pixbuf_scaled_anim_new (anim,
                                          (double) priv->width / width,
                                          (double) priv->height / height,
