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

Git pushed a commit to branch master
in repository ffmpeg.

commit 1fae5d173c4ae2df239d427f2099bf0727e2cdf7
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Mon Sep 14 02:00:50 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Sat Sep 19 19:23:57 2026 +0000

    avformat/dvdvideodec: stop advancing past the last cell of a menu PGC
    
    Fixes: out of array access
    Fixes: crafted_dvd / gen_dvd.py
    Fixes: lctl8HITfXru
    Found-by: zhang xingxing
---
 libavformat/dvdvideodec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/dvdvideodec.c b/libavformat/dvdvideodec.c
index 1e397e3bf5..315197ad30 100644
--- a/libavformat/dvdvideodec.c
+++ b/libavformat/dvdvideodec.c
@@ -416,7 +416,7 @@ static int dvdvideo_menu_next_ps_block(AVFormatContext *s, 
DVDVideoPlaybackState
     /* we were at the end of a vobu, so now go to the next one or EOF */
     if (!state->vobu_remaining && state->in_pgc) {
         if (state->vobu_next == SRI_END_OF_CELL) {
-            if (state->celln == state->celln_end && state->sector_offset > 
state->sector_end)
+            if (state->celln >= state->pgc->nr_of_cells)
                 return AVERROR_EOF;
 
             state->celln++;

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