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

Git pushed a commit to branch master
in repository ffmpeg.

commit b9227d49eabce4e54b2dedf60ec23a96d74ba16a
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Tue Jan 6 23:29:18 2026 +0100
Commit:     Timo Rothenpieler <[email protected]>
CommitDate: Tue Jan 13 21:56:14 2026 +0000

    avformat/http: Check that the protocol of redirects is http or https
    
    Fixes: #YWH-PGM40646-10
    
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavformat/http.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavformat/http.c b/libavformat/http.c
index bd25a45636..58c704a7ad 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -253,7 +253,11 @@ static int http_open_cnx_internal(URLContext *h, 
AVDictionary **options)
             if (err < 0)
                 goto end;
         }
+    } else if (strcmp(proto, "http")) {
+        err = AVERROR(EINVAL);
+        goto end;
     }
+
     if (port < 0)
         port = 80;
 

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

Reply via email to