Support reading sox style piped wav files

Sox writes the RIFF header size as a very large number, instead
of as 0 as in libavformat.
This commit is contained in:
Martin Storsjo 2014-03-12 15:00:09 +02:00
parent 43cb942cd4
commit 16f75a570e
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ void* wav_read_open(const char *filename) {
if (feof(wr->wav))
break;
length = read_int32(wr);
if (!length) {
if (!length || length >= 0x7fff0000) {
wr->streamed = 1;
length = ~0;
}