X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fwav.c;h=610c792e8576235588f229887924d02180546a2f;hb=e37f161e66e042d6c2c7470c4d9881df9427fc4a;hp=87d97b4c0c6292b725fba936a00dfb912a57a42e;hpb=02acfb1c01135542540045a8fb5b7dc16377476c;p=ffmpeg diff --git a/libavformat/wav.c b/libavformat/wav.c index 87d97b4c0c6..610c792e857 100644 --- a/libavformat/wav.c +++ b/libavformat/wav.c @@ -387,8 +387,7 @@ static const AVMetadataConv wav_metadata_conv[] = { }; /* wav input */ -static int wav_read_header(AVFormatContext *s, - AVFormatParameters *ap) +static int wav_read_header(AVFormatContext *s) { int64_t size, av_uninit(data_size); int64_t sample_count=0; @@ -507,8 +506,8 @@ static int wav_read_header(AVFormatContext *s, goto break_loop; case MKTAG('L', 'I', 'S', 'T'): list_type = avio_rl32(pb); - if (size <= 4) { - av_log(s, AV_LOG_ERROR, "too short LIST"); + if (size < 4) { + av_log(s, AV_LOG_ERROR, "too short LIST tag\n"); return AVERROR_INVALIDDATA; } switch (list_type) { @@ -729,7 +728,7 @@ static int w64_probe(AVProbeData *p) return 0; } -static int w64_read_header(AVFormatContext *s, AVFormatParameters *ap) +static int w64_read_header(AVFormatContext *s) { int64_t size; AVIOContext *pb = s->pb;