From 0261712cdc8fb4765add50146936e3ba2cb9fefa Mon Sep 17 00:00:00 2001 From: glennrp Date: Wed, 28 Jul 2010 13:07:35 +0000 Subject: [PATCH] Eliminate useless message about assuming zero delay when writing a single-frame MNG. --- ChangeLog | 4 ++++ coders/png.c | 9 +++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index a7f4da309..4afac36d0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2010-07-27 6.6.3-2 Glenn Randers-Pehrson + * Eliminate useless message about assuming zero delay when writing + a single-frame MNG. + 2010-07-25 6.6.3-1 Glenn Randers-Pehrson * Don't "ping" a PNG image if it is embedded in a MNG. Otherwise the reader tries to read MNG chunks from the interior of the embedded PNG, diff --git a/coders/png.c b/coders/png.c index d323c6ef0..82c554646 100644 --- a/coders/png.c +++ b/coders/png.c @@ -9238,10 +9238,11 @@ static MagickBooleanType WriteMNGImage(const ImageInfo *image_info,Image *image) It's probably a GIF with loop; don't run it *too* fast. */ final_delay=10; - (void) ThrowMagickException(&image->exception, - GetMagickModule(),CoderError, - "input has zero delay between all frames; assuming 10 cs", - "`%s'",""); + if (mng_info->adjoin) + (void) ThrowMagickException(&image->exception, + GetMagickModule(),CoderError, + "input has zero delay between all frames; assuming 10 cs", + "`%s'",""); } else mng_info->ticks_per_second=0; -- 2.40.0