diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-05-10 15:01:36 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-05-10 15:01:36 +0200 |
commit | a649f36f75f6e3493f17eed3fa8b6db4fb981bd0 (patch) | |
tree | 45417273a57901ab30c46458fc241ae0bed629e4 | |
parent | 3d65570f2560d2b1d9460c0bc9789c412a1138f7 (diff) | |
download | ffmpeg-a649f36f75f6e3493f17eed3fa8b6db4fb981bd0.tar.gz |
avformat/http: Mark lower_proto as const in http_listen()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/http.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/http.c b/libavformat/http.c index 3a31a86447..4f6716a75b 100644 --- a/libavformat/http.c +++ b/libavformat/http.c @@ -306,7 +306,7 @@ static int http_listen(URLContext *h, const char *uri, int flags, static const char header[] = "HTTP/1.1 200 OK\r\nContent-Type: application/octet-stream\r\nTransfer-Encoding: chunked\r\n\r\n"; char hostname[1024], proto[10]; char lower_url[100]; - char *lower_proto = "tcp"; + const char *lower_proto = "tcp"; int port, new_location; av_url_split(proto, sizeof(proto), NULL, 0, hostname, sizeof(hostname), &port, NULL, 0, uri); |