diff mbox series

[FFmpeg-devel,4/5] avformat/utils: add const for argument passed to ff_is_http_proto()

Message ID 1632198725-19424-4-git-send-email-lance.lmwang@gmail.com
State Accepted
Commit 4be3f6d2d2dc438351d382c5324511cc3b9ed6f4
Headers show
Series [FFmpeg-devel,1/5] avcodec: remove the unused low_delay | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished
andriy/make_ppc success Make finished
andriy/make_fate_ppc success Make fate finished

Commit Message

Lance Wang Sept. 21, 2021, 4:32 a.m. UTC
From: Limin Wang <lance.lmwang@gmail.com>

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
---
 libavformat/internal.h | 2 +-
 libavformat/utils.c    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/libavformat/internal.h b/libavformat/internal.h
index cc8c8f4..6f1f1c0 100644
--- a/libavformat/internal.h
+++ b/libavformat/internal.h
@@ -907,7 +907,7 @@  void ff_format_io_close(AVFormatContext *s, AVIOContext **pb);
  * @param s AVFormatContext
  * @param filename URL or file name to open for writing
  */
-int ff_is_http_proto(char *filename);
+int ff_is_http_proto(const char *filename);
 
 /**
  * Parse creation_time in AVFormatContext metadata if exists and warn if the
diff --git a/libavformat/utils.c b/libavformat/utils.c
index 2157f93..509c0ec 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;
 }