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

Git pushed a commit to branch master
in repository ffmpeg.

commit 23f99b2f62de37ab5532893d3bae626f7f77a94b
Author:     Romain Beauxis <[email protected]>
AuthorDate: Tue Aug 18 17:00:18 2026 -0500
Commit:     Romain Beauxis <[email protected]>
CommitDate: Fri Sep 25 16:04:08 2026 +0000

    avformat/libcurl: reset the response header scratch on an ICY status line
    
    Keying the reset on a literal "HTTP/" prefix cannot recognise the "ICY 200"
    status line the next commit lets curl accept, leaving the scratch of the
    previous reply in place.
---
 libavformat/libcurl.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/libavformat/libcurl.c b/libavformat/libcurl.c
index be8c4d2d97..b529685dac 100644
--- a/libavformat/libcurl.c
+++ b/libavformat/libcurl.c
@@ -363,7 +363,10 @@ static size_t header_callback(char *ptr, size_t size, 
size_t nitems, void *userd
     size_t n = len;
     long status = 0;
 
-    if (av_strncasecmp(ptr, "HTTP/", 5) == 0) {
+    /* Only "ICY 200" is aliased, so these two prefixes cover every status line
+     * curl lets through. */
+    if (av_strncasecmp(ptr, "HTTP/", 5) == 0 ||
+        av_strncasecmp(ptr, "ICY ", 4) == 0) {
         c->hdr_accept_ranges = 0;
         c->hdr_compressed    = 0;
         c->hdr_content_start = -1;

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