Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-12-25 04:43:14 +0400
committerMichael Niedermayer <michaelni@gmx.at>2012-12-25 04:43:14 +0400
commit4fcf6aa7a3a204af3abcdc2aea2bd6247e6baf6f (patch)
treec74f72002012c0f2d401c51acc6fd6d0e0e27384 /libavformat
parent658bd6db7bd197a4f2b0fada671319ab87e926b3 (diff)
flac_probe: make buffer pointers const
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/flacdec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/flacdec.c b/libavformat/flacdec.c
index bbb28f435a..ecc47e6ccd 100644
--- a/libavformat/flacdec.c
+++ b/libavformat/flacdec.c
@@ -277,8 +277,8 @@ fail:
static int flac_probe(AVProbeData *p)
{
- uint8_t *bufptr = p->buf;
- uint8_t *end = p->buf + p->buf_size;
+ const uint8_t *bufptr = p->buf;
+ const uint8_t *end = p->buf + p->buf_size;
if(bufptr > end-4 || memcmp(bufptr, "fLaC", 4)) return 0;
else return AVPROBE_SCORE_MAX/2;