[SCM] libav/experimental: http: Declare more parameters as const where possible

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Aug 10 16:02:00 UTC 2014


The following commit has been merged in the experimental branch:
commit e77a2ea9505863e50bf013706f66bf8b7325e524
Author: Martin Storsjö <martin at martin.st>
Date:   Wed Mar 12 09:40:05 2014 +0200

    http: Declare more parameters as const where possible
    
    Signed-off-by: Martin Storsjö <martin at martin.st>

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;
 

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list