Skip to content

Commit 8fdaf11

Browse files
committed
http error log add http_code
1 parent 3e40505 commit 8fdaf11

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

patches/ffmpeg-n6.1/0023-fix-http-open-and-http_seek-redirect-authentication-.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
From 471ccf6b139063fabacf243501ae0c69000bbe8e Mon Sep 17 00:00:00 2001
1+
From 43d61d6f8a698efa92d5cf586db38cc380c48efc Mon Sep 17 00:00:00 2001
22
From: qianlongxu <[email protected]>
3-
Date: Tue, 5 Nov 2024 18:51:46 +0800
3+
Date: Thu, 7 Nov 2024 18:39:45 +0800
44
Subject: [PATCH 23] fix http open and http_seek (redirect) authentication bug
55

66
---
77
libavformat/http.c | 25 +++++++++++++++++++++++--
88
1 file changed, 23 insertions(+), 2 deletions(-)
99

1010
diff --git a/libavformat/http.c b/libavformat/http.c
11-
index 06f1bdd..dc0ba67 100644
11+
index 06f1bdd..4280614 100644
1212
--- a/libavformat/http.c
1313
+++ b/libavformat/http.c
1414
@@ -78,6 +78,7 @@ typedef struct HTTPContext {
@@ -63,7 +63,7 @@ index 06f1bdd..dc0ba67 100644
6363
+ }
6464
done:
6565
+ if (err != 0) {
66-
+ av_log(NULL, AV_LOG_ERROR, "http error %s\n", s->buffer);
66+
+ av_log(NULL, AV_LOG_ERROR, "http error %d,%s\n", s->http_code,s->buffer);
6767
+ }
6868
av_freep(&authstr);
6969
av_freep(&proxyauthstr);

0 commit comments

Comments
 (0)