summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-11-23 23:35:16 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-11-23 23:41:57 +0100
commit09456d0df13404f004ab3a341d9ac21b7e5e6d6d (patch)
tree3d22fc3c7ae706245d40d2f1a121ad13eaa8effe
parent9a7256e8e07a47bc35da5e8ad5854fa18bdcffca (diff)
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>
-rw-r--r--libavformat/wavdec.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/wavdec.c b/libavformat/wavdec.c
index 7a54b1b8ed..62bf263084 100644
--- a/libavformat/wavdec.c
+++ b/libavformat/wavdec.c
@@ -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;
}