diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-12-25 01:51:59 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-12-25 01:51:59 +0100 |
commit | c8e5efb4961eb779356fcf4195d36e692a25cf2c (patch) | |
tree | ab94a8382d2ecd68e76cf3aa870aba2ac069be2e /libavformat/mpc8.c | |
parent | 7a84664ffe54dbc19eab093e8f34aa9bec3dfd1e (diff) | |
download | ffmpeg-c8e5efb4961eb779356fcf4195d36e692a25cf2c.tar.gz |
mpc8_probe: make buffer related pointers and function arguments const
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mpc8.c')
-rw-r--r-- | libavformat/mpc8.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/mpc8.c b/libavformat/mpc8.c index 191f6963de..011c7c8e64 100644 --- a/libavformat/mpc8.c +++ b/libavformat/mpc8.c @@ -55,7 +55,7 @@ typedef struct { int64_t apetag_start; } MPCContext; -static inline int64_t bs_get_v(uint8_t **bs) +static inline int64_t bs_get_v(const uint8_t **bs) { int64_t v = 0; int br = 0; @@ -75,8 +75,8 @@ static inline int64_t bs_get_v(uint8_t **bs) static int mpc8_probe(AVProbeData *p) { - uint8_t *bs = p->buf + 4; - uint8_t *bs_end = bs + p->buf_size; + const uint8_t *bs = p->buf + 4; + const uint8_t *bs_end = bs + p->buf_size; int64_t size; if (p->buf_size < 16) |