Browse Source

flac_probe: make buffer pointers const

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.1
Michael Niedermayer 13 years ago
parent
commit
4fcf6aa7a3
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavformat/flacdec.c

+ 2
- 2
libavformat/flacdec.c View File

@@ -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…
Cancel
Save