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

Git pushed a commit to branch master
in repository ffmpeg.

commit 70537ec8e6cc3492ac69fad3b6e7fd7d940020d6
Author:     Niklas Haas <[email protected]>
AuthorDate: Thu Mar 12 21:49:16 2026 +0100
Commit:     Niklas Haas <[email protected]>
CommitDate: Wed Mar 18 09:09:44 2026 +0000

    swscale/x86/ops: cosmetic
    
    And remove a pointless assertion.
    
    Signed-off-by: Niklas Haas <[email protected]>
---
 libswscale/x86/ops.c | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/libswscale/x86/ops.c b/libswscale/x86/ops.c
index 92db9cb3af..f4d35ec37b 100644
--- a/libswscale/x86/ops.c
+++ b/libswscale/x86/ops.c
@@ -696,16 +696,12 @@ static void normalize_clear(SwsOp *op)
 
 static int compile(SwsContext *ctx, SwsOpList *ops, SwsCompiledOp *out)
 {
+    int ret;
     const int cpu_flags = av_get_cpu_flags();
     const int mmsize = get_mmsize(cpu_flags);
     if (mmsize < 0)
         return mmsize;
 
-    const SwsOp *read  = ff_sws_op_list_input(ops);
-    const SwsOp *write = ff_sws_op_list_output(ops);
-    av_assert1(write);
-    int ret;
-
     /* Special fast path for in-place packed shuffle */
     ret = solve_shuffle(ops, mmsize, out);
     if (ret != AVERROR(ENOTSUP))
@@ -759,6 +755,8 @@ static int compile(SwsContext *ctx, SwsOpList *ops, 
SwsCompiledOp *out)
         out->func = NAME;                                       \
     } while (0)
 
+    const SwsOp *read      = ff_sws_op_list_input(ops);
+    const SwsOp *write     = ff_sws_op_list_output(ops);
     const int read_planes  = read ? (read->rw.packed ? 1 : read->rw.elems) : 0;
     const int write_planes = write->rw.packed ? 1 : write->rw.elems;
     switch (FFMAX(read_planes, write_planes)) {

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to