riff: ignore ff_read_riff_info() failure.

Some files simply contain invalid info tags.
Fixes unrelated bug posted into Ticket1821

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 09456d0df1)
This commit is contained in:
Michael Niedermayer 2012-11-23 23:35:16 +01:00 committed by Carl Eugen Hoyos
parent 1a5b7ce0ea
commit f1156fdc02
1 changed files with 1 additions and 2 deletions

View File

@ -513,8 +513,7 @@ static int wav_read_header(AVFormatContext *s,
} }
switch (list_type) { switch (list_type) {
case MKTAG('I', 'N', 'F', 'O'): case MKTAG('I', 'N', 'F', 'O'):
if ((ret = ff_read_riff_info(s, size - 4)) < 0) ff_read_riff_info(s, size - 4);
return ret;
} }
break; break;
} }