Commit 7d4ee39f authored by Martin Storsjo's avatar Martin Storsjo

Support wav files with fmt tags longer than 16 bytes

parent e79fcfe3
...@@ -109,6 +109,7 @@ void* wav_read_open(const char *filename) { ...@@ -109,6 +109,7 @@ void* wav_read_open(const char *filename) {
wr->byte_rate = read_int32(wr); wr->byte_rate = read_int32(wr);
wr->block_align = read_int16(wr); wr->block_align = read_int16(wr);
wr->bits_per_sample = read_int16(wr); wr->bits_per_sample = read_int16(wr);
fseek(wr->wav, sublength - 16, SEEK_CUR);
} else if (subtag == TAG('d', 'a', 't', 'a')) { } else if (subtag == TAG('d', 'a', 't', 'a')) {
data_pos = ftell(wr->wav); data_pos = ftell(wr->wav);
wr->data_length = sublength; wr->data_length = sublength;
......
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