You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avformat/http: Mark lower_proto as const in http_listen()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -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";
|
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 hostname[1024], proto[10];
|
||||||
char lower_url[100];
|
char lower_url[100];
|
||||||
char *lower_proto = "tcp";
|
const char *lower_proto = "tcp";
|
||||||
int port, new_location;
|
int port, new_location;
|
||||||
av_url_split(proto, sizeof(proto), NULL, 0, hostname, sizeof(hostname), &port,
|
av_url_split(proto, sizeof(proto), NULL, 0, hostname, sizeof(hostname), &port,
|
||||||
NULL, 0, uri);
|
NULL, 0, uri);
|
||||||
|
Reference in New Issue
Block a user