if ((image_info->ping != MagickFalse) && (image_info->number_scenes != 0))
if (image->scene >= (image_info->scene+image_info->number_scenes-1))
break;
- /*
- Decode image.
- */
- if (image_info->ping != MagickFalse)
- status=PingGIFImage(image,exception);
- else
- status=DecodeImage(image,opacity,exception);
- if ((image_info->ping == MagickFalse) && (status == MagickFalse))
- ThrowGIFException(CorruptImageError,"CorruptImage");
status=SetImageExtent(image,image->columns,image->rows,exception);
if (status == MagickFalse)
{
meta_image=DestroyImage(meta_image);
return(DestroyImageList(image));
}
+ /*
+ Decode image.
+ */
+ if (image_info->ping != MagickFalse)
+ status=PingGIFImage(image,exception);
+ else
+ status=DecodeImage(image,opacity,exception);
+ if ((image_info->ping == MagickFalse) && (status == MagickFalse))
+ ThrowGIFException(CorruptImageError,"CorruptImage");
duration+=image->delay*image->iterations;
if (image_info->number_scenes != 0)
if (image->scene >= (image_info->scene+image_info->number_scenes-1))