diff options
author | Limin Wang <lance.lmwang@gmail.com> | 2021-08-20 19:31:13 +0800 |
---|---|---|
committer | Limin Wang <lance.lmwang@gmail.com> | 2021-09-29 18:00:14 +0800 |
commit | 4be3f6d2d2dc438351d382c5324511cc3b9ed6f4 (patch) | |
tree | 1be0ad735d99c0a975decb5e381429bbf91a5092 /libavformat/utils.c | |
parent | 31831b611b7d7f092699360e81beede86b09a5f1 (diff) | |
download | ffmpeg-4be3f6d2d2dc438351d382c5324511cc3b9ed6f4.tar.gz |
avformat/utils: add const for argument passed to ff_is_http_proto()
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 2157f93e7b..509c0ecdce 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -1802,7 +1802,7 @@ void ff_format_io_close(AVFormatContext *s, AVIOContext **pb) *pb = NULL; } -int ff_is_http_proto(char *filename) { +int ff_is_http_proto(const char *filename) { const char *proto = avio_find_protocol_name(filename); return proto ? (!av_strcasecmp(proto, "http") || !av_strcasecmp(proto, "https")) : 0; } |