wav: simplify extended fmt chunk handling [bug #198]
commit1e0a00d4e1d42f775a426519c97fbb2e7a648fe5
authorMans Rullgard <mans@mansr.com>
Fri, 7 Aug 2020 11:27:46 +0000 (7 12:27 +0100)
committerMans Rullgard <mans@mansr.com>
Wed, 12 Aug 2020 13:02:42 +0000 (12 14:02 +0100)
tree859983d2025fa65d1c49e2d54b4a503192189586
parent093de989f1568bfeebe8ddf43ee818d3eae43ef1
wav: simplify extended fmt chunk handling [bug #198]

If the fmt chunk is longer than 16 bytes, the following two bytes
are the cbSize field.  Always read this if present, then use it as
needed depending on the format tag.

This also fixes a bogus warning message when reading floating-point
wav files.
src/wav.c