input/wav: Correctly check supported sample size.

This commit is contained in:
Bert Vermeulen 2014-09-02 21:26:15 +02:00
parent 28d9df7292
commit 73145219c0
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ static int parse_wav_header(GString *buf, struct context *inc)
samplerate = RL32(buf->str + 24);
samplesize = RL16(buf->str + 32);
if (samplesize != 1 && samplesize != 2 && samplesize != 4) {
if (samplesize != 8 && samplesize != 16 && samplesize != 32) {
sr_err("Only 8, 16 or 32 bits per sample supported.");
return SR_ERR_DATA;
}