Commit 7ac2dccf3 for imagemagick.org
commit 7ac2dccf3e1340d6c7afd173831ec1396b02cfa6
Author: Dirk Lemstra <dirk@lemstra.org>
Date: Mon Mar 30 21:05:21 2026 +0200
Use a cast to double instead of a multiplication.
diff --git a/coders/video.c b/coders/video.c
index 72047bce1..0652e30e9 100644
--- a/coders/video.c
+++ b/coders/video.c
@@ -716,8 +716,8 @@ static MagickBooleanType WriteVIDEOImage(const ImageInfo *image_info,
double
time_per_frame;
- time_per_frame=1.0*clone_images->delay/MagickMax(1.0*
- clone_images->ticks_per_second,1.0);
+ time_per_frame=(double) clone_images->delay /
+ MagickMax((double) clone_images->ticks_per_second,1.0);
if (time_per_frame > 0.0)
{
(void) FormatLocaleString(command,MagickPathExtent,