Commit 4fcf6aa7 authored by Michael Niedermayer's avatar Michael Niedermayer

flac_probe: make buffer pointers const

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 658bd6db
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment