mirror of https://github.com/mstorsjo/fdk-aac.git
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:
parent
43cb942cd4
commit
16f75a570e
|
@ -89,7 +89,7 @@ void* wav_read_open(const char *filename) {
|
||||||
if (feof(wr->wav))
|
if (feof(wr->wav))
|
||||||
break;
|
break;
|
||||||
length = read_int32(wr);
|
length = read_int32(wr);
|
||||||
if (!length) {
|
if (!length || length >= 0x7fff0000) {
|
||||||
wr->streamed = 1;
|
wr->streamed = 1;
|
||||||
length = ~0;
|
length = ~0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue