ref: c8f56d17352951f5d200a8424da6b6a1ddd9354b
parent: 8c9ee43e3e24c4006884846312c72fa125cebac4
author: Gregory Maxwell <[email protected]>
date: Mon Jun 11 20:23:23 EDT 2012
When ignoring length don't try to get the length with ftell either.
--- a/src/audio-in.c
+++ b/src/audio-in.c
@@ -588,6 +588,10 @@
{
opt->total_samples_per_channel = len/(format.channels*samplesize);
}
+ else if (opt->ignorelength==1)
+ {
+ opt->total_samples_per_channel = 0;
+ }
else
{
opus_int64 pos;