riff: ignore ff_read_riff_info() failure.
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 23 Nov 2012 22:35:16 +0000 (23:35 +0100)
committerCarl Eugen Hoyos <cehoyos@ag.or.at>
Sun, 9 Dec 2012 23:36:58 +0000 (00:36 +0100)
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 09456d0df13404f004ab3a341d9ac21b7e5e6d6d)

libavformat/wav.c

index f58bcb3..ec527b8 100644 (file)
@@ -527,8 +527,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;
         }