riff: ignore ff_read_riff_info() failure.
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 23 Nov 2012 22:35:16 +0000 (23:35 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 23 Nov 2012 22:41:57 +0000 (23:41 +0100)
Some files simply contain invalid info tags.
Fixes unrelated bug posted into Ticket1821

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/wavdec.c

index 7a54b1b..62bf263 100644 (file)
@@ -346,8 +346,7 @@ static int wav_read_header(AVFormatContext *s)
             }
             switch (avio_rl32(pb)) {
             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;
         }