[FFmpeg-cvslog] http: Declare more parameters as const where possible
Martin Storsjö
git at videolan.org
Wed Mar 12 21:03:49 CET 2014
ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Wed Mar 12 09:40:05 2014 +0200| [e77a2ea9505863e50bf013706f66bf8b7325e524] | committer: Martin Storsjö
http: Declare more parameters as const where possible
Signed-off-by: Martin Storsjö <martin at martin.st>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e77a2ea9505863e50bf013706f66bf8b7325e524
---
libavformat/http.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavformat/http.c b/libavformat/http.c
index f7d5c89..fde7a07 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -353,7 +353,7 @@ static int parse_location(HTTPContext *s, const char *p)
}
/* "bytes $from-$to/$document_size" */
-static void parse_content_range(URLContext *h, char *p)
+static void parse_content_range(URLContext *h, const char *p)
{
HTTPContext *s = h->priv_data;
const char *slash;
@@ -367,7 +367,7 @@ static void parse_content_range(URLContext *h, char *p)
h->is_streamed = 0; /* we _can_ in fact seek */
}
-static int parse_content_encoding(URLContext *h, char *p)
+static int parse_content_encoding(URLContext *h, const char *p)
{
HTTPContext *s = h->priv_data;
More information about the ffmpeg-cvslog
mailing list