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

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

commit 06b9b57beef852cab1b3f9b6ba7bed7e9e8d38c1
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Tue Aug 11 02:58:47 2026 +0200
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Wed Oct 14 23:49:49 2026 +0200

    avformat/hlsproto: clamp EXTINF and target duration to a 1ms minimum
    
    Fixes: infinite loop
    Fixes: https://code.ffmpeg.org/FFmpeg/FFmpeg/issues/21492
    Found-by: Kery
---
 libavformat/hlsproto.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/hlsproto.c b/libavformat/hlsproto.c
index 1c63a191cb..0ab2b52520 100644
--- a/libavformat/hlsproto.c
+++ b/libavformat/hlsproto.c
@@ -131,6 +131,7 @@ static int parse_playlist(URLContext *h, const char *url)
             bandwidth = atoi(info.bandwidth);
         } else if (av_strstart(line, "#EXT-X-TARGETDURATION:", &ptr)) {
             s->target_duration = atoi(ptr) * AV_TIME_BASE;
+            s->target_duration = FFMAX(s->target_duration, 0.001 * 
AV_TIME_BASE);
         } else if (av_strstart(line, "#EXT-X-MEDIA-SEQUENCE:", &ptr)) {
             s->start_seq_no = atoi(ptr);
         } else if (av_strstart(line, "#EXT-X-ENDLIST", &ptr)) {
@@ -138,6 +139,7 @@ static int parse_playlist(URLContext *h, const char *url)
         } else if (av_strstart(line, "#EXTINF:", &ptr)) {
             is_segment = 1;
             duration = atof(ptr) * AV_TIME_BASE;
+            duration = FFMAX(duration, 0.001 * AV_TIME_BASE);
         } else if (av_strstart(line, "#", NULL)) {
             continue;
         } else if (line[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