diff --git a/libavformat/mp3.c b/libavformat/mp3.c index ec8c0bb997a2ff89047c429535e6db16708e8bb4..eca9ad4240040337864309f3561672481ee5ec2d 100644 --- a/libavformat/mp3.c +++ b/libavformat/mp3.c @@ -364,7 +364,7 @@ static int mp3_read_probe(AVProbeData *p) max_frames = 0; buf = buf0; - end = buf + p->buf_size - sizeof(uint32_t); + end = p->buf + p->buf_size - sizeof(uint32_t); for(; buf < end; buf= buf2+1) { buf2 = buf;