mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-23 03:17:30 +00:00
ipmovie_probe: make buffer pointers const
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
4fcf6aa7a3
commit
23348647b2
@ -527,8 +527,8 @@ static const char signature[] = "Interplay MVE File\x1A\0\x1A";
|
|||||||
|
|
||||||
static int ipmovie_probe(AVProbeData *p)
|
static int ipmovie_probe(AVProbeData *p)
|
||||||
{
|
{
|
||||||
uint8_t *b = p->buf;
|
const uint8_t *b = p->buf;
|
||||||
uint8_t *b_end = p->buf + p->buf_size - sizeof(signature);
|
const uint8_t *b_end = p->buf + p->buf_size - sizeof(signature);
|
||||||
do {
|
do {
|
||||||
if (b[0] == signature[0] && memcmp(b, signature, sizeof(signature)) == 0)
|
if (b[0] == signature[0] && memcmp(b, signature, sizeof(signature)) == 0)
|
||||||
return AVPROBE_SCORE_MAX;
|
return AVPROBE_SCORE_MAX;
|
||||||
|
Loading…
Reference in New Issue
Block a user