OSDN Git Service

wav: refactor the 'fmt ' tag search and parsing.
authorTomas Härdin <tomas.hardin@codemill.se>
Tue, 17 May 2011 17:46:08 +0000 (19:46 +0200)
committerAnton Khirnov <anton@khirnov.net>
Wed, 13 Jul 2011 09:57:51 +0000 (11:57 +0200)
commit7f84055e2d3814972a61515da7f1d2659b185ea0
tree9312f779ce17d10e6d377f44a2f0aa8cad6adfbc
parenta4ad9438600ea20f4ef459f3f5f397755d48c58b
wav: refactor the 'fmt ' tag search and parsing.

Moving the search and parsing of the 'fmt ' info the main loop of
wav_read_header() allows tags that precede it to be parsed.  Creating
wav_parse_fmt_tag() makes wav_read_header() easier to read.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavformat/wav.c