mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-11-03 09:41:17 +08:00
avformat/utils: add const for argument passed to ff_is_http_proto()
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user