Do not reject LIST tags in wav with size 4.

Fixes ticket #745.
pull/2/head
Carl Eugen Hoyos 13 years ago
parent 9c18a056b1
commit a8e93ce4cb
  1. 2
      libavformat/wav.c

@ -507,7 +507,7 @@ static int wav_read_header(AVFormatContext *s,
goto break_loop; goto break_loop;
case MKTAG('L', 'I', 'S', 'T'): case MKTAG('L', 'I', 'S', 'T'):
list_type = avio_rl32(pb); list_type = avio_rl32(pb);
if (size <= 4) { if (size < 4) {
av_log(s, AV_LOG_ERROR, "too short LIST"); av_log(s, AV_LOG_ERROR, "too short LIST");
return AVERROR_INVALIDDATA; return AVERROR_INVALIDDATA;
} }

Loading…
Cancel
Save