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

Git pushed a commit to branch master
in repository ffmpeg.

commit b5402d1ecf90343e26679fdfe258de3a490fbb43
Author:     Kacper Michajłow <[email protected]>
AuthorDate: Wed Jul 8 07:41:15 2026 +0200
Commit:     Kacper Michajłow <[email protected]>
CommitDate: Tue Aug 11 00:44:53 2026 +0200

    avformat/hls: measure playlist reload interval from load start
    
    RFC 8216 6.3.4 measures reload waits from the time the client began
    loading the playlist, not from when the load finished.
    
    Signed-off-by: Kacper Michajłow <[email protected]>
---
 libavformat/hls.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/libavformat/hls.c b/libavformat/hls.c
index e8533aa93f..e6772292b4 100644
--- a/libavformat/hls.c
+++ b/libavformat/hls.c
@@ -849,6 +849,7 @@ static int parse_playlist(HLSContext *c, const char *url,
     struct segment **prev_segments = NULL;
     int prev_n_segments = 0;
     int64_t prev_start_seq_no = -1;
+    int64_t load_start = av_gettime_relative();
 
     if (is_http && !in && c->http_persistent && c->playlist_pb) {
         in = c->playlist_pb;
@@ -1159,10 +1160,10 @@ static int parse_playlist(HLSContext *c, const char 
*url,
         free_segment_dynarray(prev_segments, prev_n_segments);
         av_freep(&prev_segments);
     }
-    if (pls)
-        pls->last_load_time = av_gettime_relative();
 
 fail:
+    if (pls)
+        pls->last_load_time = load_start;
     av_free(new_url);
     if (close_in)
         ff_format_io_close(c->ctx, &in);

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to