diff --git a/libavformat/wav.c b/libavformat/wav.c index c408623f36..5bd76a95bc 100644 --- a/libavformat/wav.c +++ b/libavformat/wav.c @@ -513,8 +513,7 @@ static int wav_read_header(AVFormatContext *s) } switch (list_type) { case MKTAG('I', 'N', 'F', 'O'): - if ((ret = ff_read_riff_info(s, size - 4)) < 0) - return ret; + ff_read_riff_info(s, size - 4); } break; }