mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
flac_probe: make buffer pointers const
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
658bd6db7b
commit
4fcf6aa7a3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user