Commit fc73dfed authored by Michael Smith's avatar Michael Smith

Really obscure bug fix - samplesize should be used instead of hardcoded to 2.

svn path=/trunk/vorbis-tools/; revision=2410
parent 0dcdd962
......@@ -445,8 +445,8 @@ int wav_open(FILE *in, oe_enc_opt *opt, unsigned char *oldbuf, int buflen)
}
else
{
opt->total_samples_per_channel = (ftell(in) - pos)/(format.channels*2);
wav->totalsamples = len/(format.channels*2);
opt->total_samples_per_channel = (ftell(in) - pos)/(format.channels*samplesize);
wav->totalsamples = len/(format.channels*samplesize);
fseek(in,pos, SEEK_SET);
}
}
......
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