ffmpeg | branch: master | Aman Gupta <[email protected]> | Tue Dec 12 16:02:09 2017 
-0800| [9395e44b8d20d1d4c72dd5b42d28721ca191d957] | committer: Aman Gupta

avformat/http: add "Opening" info logging to ff_http_do_new_request

This mimics logging that was added in 53e0d5d7247 for security
purposes.

Signed-off-by: Aman Gupta <[email protected]>
Signed-off-by: Michael Niedermayer <[email protected]>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9395e44b8d20d1d4c72dd5b42d28721ca191d957
---

 libavformat/http.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/http.c b/libavformat/http.c
index a3c36423fc..ffdf11cf7e 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -336,6 +336,7 @@ int ff_http_do_new_request(URLContext *h, const char *uri)
     if (!s->location)
         return AVERROR(ENOMEM);
 
+    av_log(s, AV_LOG_INFO, "Opening \'%s\' for %s\n", uri, h->flags & 
AVIO_FLAG_WRITE ? "writing" : "reading");
     ret = http_open_cnx(h, &options);
     av_dict_free(&options);
     return ret;

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to