From 4fcf6aa7a3a204af3abcdc2aea2bd6247e6baf6f Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 25 Dec 2012 01:43:14 +0100 Subject: [PATCH] flac_probe: make buffer pointers const Signed-off-by: Michael Niedermayer --- libavformat/flacdec.c | 4 ++-- 1 file 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;