This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository legacy-imlib2.

View the commit online.

commit 4927d847909f88b4595bdf73d85a52c1b1be8453
Author: Kim Woelders <k...@woelders.dk>
AuthorDate: Fri Mar 7 06:44:19 2025 +0100

    Y4M Loader: Trivial simplification
---
 src/modules/loaders/loader_y4m.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/modules/loaders/loader_y4m.c b/src/modules/loaders/loader_y4m.c
index 85013e4..6464e56 100644
--- a/src/modules/loaders/loader_y4m.c
+++ b/src/modules/loaders/loader_y4m.c
@@ -494,9 +494,7 @@ _load(ImlibImage *im, int load_data)
     {
         pf->canvas_w = im->w;
         pf->canvas_h = im->h;
-        pf->frame_delay = y4m.frametime_us / 1000;
-        if (y4m.frametime_us % 1000 >= 500)     /* round up */
-            ++pf->frame_delay;
+        pf->frame_delay = (y4m.frametime_us + 500) / 1000;
     }
 
     if (!load_data)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to