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

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

commit 065b44a7fbe630fdf2ec7d60c9eb4f2d19f9aa14
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Sun Sep 6 14:42:56 2026 +0200
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sat Sep 19 14:27:12 2026 +0200

    avcodec/rv34: do not await a negative reference-frame row
    
    Fixes: unsynchronized cross-thread read of reference frame rows
    Fixes: IFu1maPxsZFJ
    Found-by: Mozilla's AI bot, reviewed and reported by Chun-Min Chang 
<[email protected]>
    (cherry picked from commit 9e17d6c9f187a9e6ba8624f00fa14b5d40dbdf24)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavcodec/rv34.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/rv34.c b/libavcodec/rv34.c
index 6942cc2e20..f703f23e77 100644
--- a/libavcodec/rv34.c
+++ b/libavcodec/rv34.c
@@ -722,7 +722,7 @@ static inline void rv34_mc(RV34DecContext *r, const int 
block_type,
         /* wait for the referenced mb row to be finished */
         int mb_row = s->mb_y + ((yoff + my + 5 + 8 * height) >> 4);
         const ThreadProgress *p = dir ? &s->next_pic.ptr->progress : 
&s->last_pic.ptr->progress;
-        ff_thread_progress_await(p, mb_row);
+        ff_thread_progress_await(p, FFMAX(0, mb_row));
     }
 
     dxy = ly*4 + lx;

-- 
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