[FFmpeg-cvslog] http: Declare more parameters as const where possible

Martin Storsjö git at videolan.org
Sun Mar 16 04:24:41 CET 2014


ffmpeg | branch: release/2.2 | Martin Storsjö <martin at martin.st> | Wed Mar 12 09:40:05 2014 +0200| [10379d50be18325a07ef297bd2120d85a58ec78b] | committer: Reinhard Tartler

http: Declare more parameters as const where possible

Signed-off-by: Martin Storsjö <martin at martin.st>
(cherry picked from commit e77a2ea9505863e50bf013706f66bf8b7325e524)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=10379d50be18325a07ef297bd2120d85a58ec78b
---

 libavformat/http.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavformat/http.c b/libavformat/http.c
index 7e3af5a..c553d8e 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