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 17943768e42c2044f91ebe34d509da782fa2922b
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Tue Aug 11 03:56:46 2026 +0200
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Wed Oct 14 23:49:49 2026 +0200

    avformat/hlsproto: derive the target duration when EXT-X-TARGETDURATION is 
missing
    
    Fixes: infinite loop
---
 libavformat/hlsproto.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavformat/hlsproto.c b/libavformat/hlsproto.c
index 906f1bbaf2..f0e2230a70 100644
--- a/libavformat/hlsproto.c
+++ b/libavformat/hlsproto.c
@@ -245,6 +245,10 @@ static int hls_open(URLContext *h, const char *uri, int 
flags)
         ret = AVERROR(EIO);
         goto fail;
     }
+    if (!s->target_duration) {
+        av_log(h, AV_LOG_WARNING, "Missing #EXT-X-TARGETDURATION\n");
+        s->target_duration = s->segments[s->n_segments - 1]->duration;
+    }
     s->cur_seq_no = s->start_seq_no;
     if (!s->finished && s->n_segments >= 3)
         s->cur_seq_no = s->start_seq_no + s->n_segments - 3;

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