diff options
author | Martin Storsjo <martin@martin.st> | 2014-03-12 15:00:09 +0200 |
---|---|---|
committer | Martin Storsjo <martin@martin.st> | 2014-06-23 10:45:50 +0300 |
commit | 16f75a570ee5efdd0ad7f3edf54eeedcacca3131 (patch) | |
tree | 605ad9f84dbcc85a4583ef2bc83814d82a4a8214 /wavreader.c | |
parent | 43cb942cd46729003405f7a6f3e5eaf6a7b95d84 (diff) | |
download | fdk-aac-16f75a570ee5efdd0ad7f3edf54eeedcacca3131.tar.gz fdk-aac-16f75a570ee5efdd0ad7f3edf54eeedcacca3131.tar.bz2 fdk-aac-16f75a570ee5efdd0ad7f3edf54eeedcacca3131.zip |
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.
Diffstat (limited to 'wavreader.c')
-rw-r--r-- | wavreader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wavreader.c b/wavreader.c index 76443e0..182b3eb 100644 --- a/wavreader.c +++ b/wavreader.c @@ -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; } |