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

Git pushed a commit to branch master
in repository ffmpeg.

commit 5f30405b4102f6529b16245ec4db64c648c7ef7f
Author:     Niklas Haas <[email protected]>
AuthorDate: Sat Oct 24 17:52:41 2026 +0200
Commit:     Niklas Haas <[email protected]>
CommitDate: Sat Oct 24 19:10:02 2026 +0000

    swscale/tests/swscale: move test generation into run_tests()
    
    So that it can be used as the slice threading main callback. No
    functional change.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Signed-off-by: Niklas Haas <[email protected]>
---
 libswscale/tests/swscale.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/libswscale/tests/swscale.c b/libswscale/tests/swscale.c
index a982835baf..3ab276f534 100644
--- a/libswscale/tests/swscale.c
+++ b/libswscale/tests/swscale.c
@@ -956,6 +956,11 @@ static void runner_free(struct runner *runner)
     av_frame_free(&runner->src);
 }
 
+static int run_tests(const struct options *opts)
+{
+    return state.fp ? run_file_tests(opts) : run_self_tests(opts);
+}
+
 static int init_ref(AVFrame *ref, const struct options *opts)
 {
     SwsContext *ctx = sws_alloc_context();
@@ -1284,7 +1289,7 @@ int main(int argc, char **argv)
     if (ret < 0)
         goto error;
 
-    ret = state.fp ? run_file_tests(&opts) : run_self_tests(&opts);
+    ret = run_tests(&opts);
 
     /* fall through */
 error:

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to