Commit 16f75a57 authored by Martin Storsjo's avatar Martin Storsjo

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.
parent 43cb942c
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment