From: Bert Vermeulen Date: Tue, 2 Sep 2014 19:26:15 +0000 (+0200) Subject: input/wav: Correctly check supported sample size. X-Git-Tag: libsigrok-0.4.0~1055 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=73145219c01dd8a1a00f54c7ac4c2c537ff02518;p=libsigrok.git input/wav: Correctly check supported sample size. --- diff --git a/src/input/wav.c b/src/input/wav.c index fd1920e5..fe12a2f8 100644 --- a/src/input/wav.c +++ b/src/input/wav.c @@ -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; }