diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-09-24 18:33:55 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-09-24 19:17:55 +0200 |
commit | 280ef183db554bd4eaeaa7fe487ad398ec5208fb (patch) | |
tree | ecb12429e12ddde9d83ea18a9ce23051fc9eb4c4 /libavformat | |
parent | ab6f4fd4a70aaef09b88fc183bb7247ebe0b859a (diff) | |
download | ffmpeg-280ef183db554bd4eaeaa7fe487ad398ec5208fb.tar.gz |
libavformat/ffmetadec: Make unchanged function arguments const
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/ffmetadec.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/libavformat/ffmetadec.c b/libavformat/ffmetadec.c index e4e9dda1dd..e226406932 100644 --- a/libavformat/ffmetadec.c +++ b/libavformat/ffmetadec.c @@ -78,10 +78,11 @@ static AVChapter *read_chapter(AVFormatContext *s) return avpriv_new_chapter(s, s->nb_chapters, tb, start, end, NULL); } -static uint8_t *unescape(uint8_t *buf, int size) +static uint8_t *unescape(const uint8_t *buf, int size) { uint8_t *ret = av_malloc(size + 1); - uint8_t *p1 = ret, *p2 = buf; + uint8_t *p1 = ret; + const uint8_t *p2 = buf; if (!ret) return NULL; @@ -95,9 +96,10 @@ static uint8_t *unescape(uint8_t *buf, int size) return ret; } -static int read_tag(uint8_t *line, AVDictionary **m) +static int read_tag(const uint8_t *line, AVDictionary **m) { - uint8_t *key, *value, *p = line; + uint8_t *key, *value; + const uint8_t *p = line; /* find first not escaped '=' */ while (1) { |