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

Git pushed a commit to branch release/5.1
in repository ffmpeg.

commit 9922811ba37eae818bae0c2f8dd08fb54820297d
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Tue Feb 3 11:49:29 2026 +0100
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Tue May 5 15:21:04 2026 +0200

    avformat/http: Also count redirects from the cache
    
    Signed-off-by: Michael Niedermayer <[email protected]>
    (cherry picked from commit 82fbb04d07f83a405ac4476329f3557fd8790112)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavformat/http.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavformat/http.c b/libavformat/http.c
index 6c3601600b..50481db516 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -368,6 +368,9 @@ redo:
 
     cached = redirect_cache_get(s);
     if (cached) {
+        if (redirects++ >= s->max_redirects)
+            return AVERROR(EIO);
+
         av_free(s->location);
         s->location = av_strdup(cached);
         if (!s->location) {

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

Reply via email to