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

Git pushed a commit to branch release/7.1
in repository ffmpeg.

commit eaee3cf58441441db08bfe82f9fa6067cca98eb2
Author:     Nuo Mi <[email protected]>
AuthorDate: Sat Nov 23 17:32:37 2024 +0800
Commit:     Frank Plowman <[email protected]>
CommitDate: Wed Jun 10 15:12:20 2026 +0100

    avcodec/vvcdec: schedule next stage only if the current stage reports no 
error
    
    If the current stage reports an error, some variables may not be correctly 
initialized.
    Scheduling the next stage could lead to the use of uninitialized variables.
    
    (cherry picked from commit eb67e60cb004c17ecbbd43c6e3c6732c19de5d33)
---
 libavcodec/vvc/thread.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/vvc/thread.c b/libavcodec/vvc/thread.c
index 7ff759d889..6a623e62b1 100644
--- a/libavcodec/vvc/thread.c
+++ b/libavcodec/vvc/thread.c
@@ -655,9 +655,9 @@ static void task_run_stage(VVCTask *t, VVCContext *s, 
VVCLocalContext *lc)
                 "frame %5d, %s(%3d, %3d) failed with %d\r\n",
                 (int)fc->decode_order, task_name[stage], t->rx, t->ry, ret);
         }
+        if (!ret)
+            task_stage_done(t, s);
     }
-
-    task_stage_done(t, s);
     return;
 }
 

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

Reply via email to