X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2F4xm.c;h=a6101a92ec9b61b2bc762ada688f394e0b833870;hb=982a98a0e3414109647f885baee1196ee4ffb455;hp=ead6d2b4243a83d80c3931c03605f27a5bb3fab0;hpb=2d62e06ff6a9f3dbd78136c1dc4a315a727c6f00;p=ffmpeg diff --git a/libavformat/4xm.c b/libavformat/4xm.c index ead6d2b4243..a6101a92ec9 100644 --- a/libavformat/4xm.c +++ b/libavformat/4xm.c @@ -81,7 +81,7 @@ typedef struct FourxmDemuxContext { AVRational fps; } FourxmDemuxContext; -static int fourxm_probe(AVProbeData *p) +static int fourxm_probe(const AVProbeData *p) { if ((AV_RL32(&p->buf[0]) != RIFF_TAG) || (AV_RL32(&p->buf[8]) != FOURXMV_TAG)) @@ -241,7 +241,8 @@ static int fourxm_read_header(AVFormatContext *s) size = AV_RL32(&header[i + 4]); if (size > header_size - i - 8 && (fourcc_tag == vtrk_TAG || fourcc_tag == strk_TAG)) { av_log(s, AV_LOG_ERROR, "chunk larger than array %d>%d\n", size, header_size - i - 8); - return AVERROR_INVALIDDATA; + ret = AVERROR_INVALIDDATA; + goto fail; } if (fourcc_tag == std__TAG) {