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

Git pushed a commit to branch master
in repository ffmpeg.

commit 95ee221223ea91ddee38ae2e12e7498c1cb29874
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Thu Sep 17 16:21:42 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Sat Sep 19 18:47:12 2026 +0000

    avcodec/mpegvideo_enc: assert on the frame distance before it is truncated 
to 16 bits
    
    Fixes: assertion failure
    Fixes: 1XvjZP0UGl6O
    Found-by: Gabe Sherman (Trail of Bits)
---
 libavcodec/mpegvideo_enc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c
index 7751de8510..1a6cdbfdfb 100644
--- a/libavcodec/mpegvideo_enc.c
+++ b/libavcodec/mpegvideo_enc.c
@@ -3665,9 +3665,9 @@ static void set_frame_distances(MPVEncContext *const s)
         s->c.pb_time = s->c.pp_time - (s->c.last_non_b_time - s->c.time);
         av_assert1(s->c.pb_time > 0 && s->c.pb_time < s->c.pp_time);
     }else{
+        av_assert1(s->picture_number == 0 || s->c.time > s->c.last_non_b_time);
         s->c.pp_time = s->c.time - s->c.last_non_b_time;
         s->c.last_non_b_time = s->c.time;
-        av_assert1(s->picture_number == 0 || s->c.pp_time > 0);
     }
 }
 

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