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

Git pushed a commit to branch master
in repository ffmpeg.

commit 613925a96e3b05f9f9f39a69bd6238ec6906eb72
Author:     Niklas Haas <[email protected]>
AuthorDate: Sun Feb 15 18:31:01 2026 +0100
Commit:     Niklas Haas <[email protected]>
CommitDate: Wed Mar 4 08:49:53 2026 +0000

    avformat/http: fix Cache-Control header parsing
    
    This was calling atoi() on `p + offset`, which is nonsense (p may point to
    the start of the cache-control string, which does not necessarilly coincide
    with the location of the max-age value). Based on the code, the intent
    was clearly to parse the value *after* the matched substring.
---
 libavformat/http.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/http.c b/libavformat/http.c
index f2f8bb5e26..52073ffcb6 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -1165,7 +1165,7 @@ static void parse_cache_control(HTTPContext *s, const 
char *p)
     }
 
     if (age) {
-        s->expires = time(NULL) + atoi(p + offset);
+        s->expires = time(NULL) + atoi(age + offset);
     }
 }
 

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

Reply via email to