]> sigrok.org Git - libsigrok.git/blobdiff - src/input/wav.c
Random whitespace and other minor fixes.
[libsigrok.git] / src / input / wav.c
index 0c23010eb6f7c5f1dab218356c54c1cf80a4a212..611878e850495f79342cb0b4091c61d2dc9b50d4 100644 (file)
@@ -73,7 +73,6 @@ static int parse_wav_header(GString *buf, struct context *inc)
                return SR_ERR_DATA;
        }
 
-
        if (fmt_code == WAVE_FORMAT_PCM) {
        } else if (fmt_code == WAVE_FORMAT_IEEE_FLOAT) {
                if (unitsize != 4) {
@@ -161,7 +160,7 @@ static int find_data_chunk(GString *buf, int initial_offset)
        unsigned int offset, i;
 
        offset = initial_offset;
-       while(offset < MIN(MAX_DATA_CHUNK_OFFSET, buf->len)) {
+       while (offset < MIN(MAX_DATA_CHUNK_OFFSET, buf->len)) {
                if (!memcmp(buf->str + offset, "data", 4))
                        /* Skip into the samples. */
                        return offset + 8;
@@ -370,4 +369,3 @@ SR_PRIV struct sr_input_module input_wav = {
        .receive = receive,
        .end = end,
 };
-