Browse Source

Do not reject LIST tags in wav with size 4.

Fixes ticket #745.
(cherry picked from commit a8e93ce4cb)
tags/n0.9.1
Carl Eugen Hoyos 14 years ago
parent
commit
238c7ffd7d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/wav.c

+ 1
- 1
libavformat/wav.c View File

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


Loading…
Cancel
Save