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

Git pushed a commit to branch master
in repository ffmpeg.

commit c70d777f7fb1023adba169dd2e037b4900e96af7
Author:     Niklas Haas <[email protected]>
AuthorDate: Tue Jun 23 15:56:53 2026 +0200
Commit:     Kacper Michajłow <[email protected]>
CommitDate: Mon Jul 27 17:05:20 2026 +0000

    avformat/libcurl: enable cookie engine unconditionally
    
    With the previous commit, this allows cookies to persist across requests.
    
    Sponsored-by: nxtedition AB
    Signed-off-by: Niklas Haas <[email protected]>
---
 libavformat/libcurl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/libcurl.c b/libavformat/libcurl.c
index 6234e3c23e..26a2ccf8a1 100644
--- a/libavformat/libcurl.c
+++ b/libavformat/libcurl.c
@@ -753,10 +753,10 @@ static void setup_curl(CurlContext *c)
     if (c->key_file)
         curl_easy_setopt(e, CURLOPT_SSLKEY, c->key_file);
 
+    curl_easy_setopt(e, CURLOPT_COOKIEFILE, "");
     if (c->cookies && c->cookies[0]) {
         char *copy = av_strdup(c->cookies);
         char *line, *saveptr = NULL;
-        curl_easy_setopt(e, CURLOPT_COOKIEFILE, ""); /* enable the cookie 
engine */
         if (copy) {
             for (line = av_strtok(copy, "\r\n", &saveptr); line;
                  line = av_strtok(NULL, "\r\n", &saveptr)) {

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

Reply via email to