[FFmpeg-cvslog] avformat/http: Fix #ifdef FF_API_HTTP_USER_AGENT

Michael Niedermayer git at videolan.org
Sat Sep 17 21:18:49 EEST 2016


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sat Sep 17 19:04:45 2016 +0200| [a88092317076aab1db47c11bb15b74fdcdd64f01] | committer: Michael Niedermayer

avformat/http: Fix #ifdef FF_API_HTTP_USER_AGENT

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

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

 libavformat/http.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavformat/http.c b/libavformat/http.c
index 5f6b9de..d48958d 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -71,7 +71,7 @@ typedef struct HTTPContext {
     char *headers;
     char *mime_type;
     char *user_agent;
-#ifdef FF_API_HTTP_USER_AGENT
+#if FF_API_HTTP_USER_AGENT
     char *user_agent_deprecated;
 #endif
     char *content_type;
@@ -134,7 +134,7 @@ static const AVOption options[] = {
     { "headers", "set custom HTTP headers, can override built in default headers", OFFSET(headers), AV_OPT_TYPE_STRING, { .str = NULL }, 0, 0, D | E },
     { "content_type", "set a specific content type for the POST messages", OFFSET(content_type), AV_OPT_TYPE_STRING, { .str = NULL }, 0, 0, D | E },
     { "user_agent", "override User-Agent header", OFFSET(user_agent), AV_OPT_TYPE_STRING, { .str = DEFAULT_USER_AGENT }, 0, 0, D },
-#ifdef FF_API_HTTP_USER_AGENT
+#if FF_API_HTTP_USER_AGENT
     { "user-agent", "override User-Agent header", OFFSET(user_agent_deprecated), AV_OPT_TYPE_STRING, { .str = DEFAULT_USER_AGENT }, 0, 0, D },
 #endif
     { "multiple_requests", "use persistent connections", OFFSET(multiple_requests), AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1, D | E },
@@ -1042,7 +1042,7 @@ static int http_connect(URLContext *h, const char *path, const char *local_path,
             send_expect_100 = 1;
     }
 
-#ifdef FF_API_HTTP_USER_AGENT
+#if FF_API_HTTP_USER_AGENT
     if (strcmp(s->user_agent_deprecated, DEFAULT_USER_AGENT)) {
         av_log(s, AV_LOG_WARNING, "the user-agent option is deprecated, please use user_agent option\n");
         s->user_agent = av_strdup(s->user_agent_deprecated);



More information about the ffmpeg-cvslog mailing list