Don't assume reading the duration field advances the buffer 12 bytes, instead check...
commite5fc6196034dad3383295cdf2c91af7f92519fcf
authorsaratoga <saratoga@a1c6a512-1295-4272-9138-f99709370657>
Sun, 9 Mar 2008 22:55:38 +0000 (9 22:55 +0000)
committersaratoga <saratoga@a1c6a512-1295-4272-9138-f99709370657>
Sun, 9 Mar 2008 22:55:38 +0000 (9 22:55 +0000)
tree75a67c2063fa53485781cd4f8a834e47856d63bd
parent0041b81aa4c9d752cb5768a71d04209920c6fa18
Don't assume reading the duration field advances the buffer 12 bytes, instead check the return value and seek accordingly.  Improves (fixes?) seeking in sample submitted by Lear.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16595 a1c6a512-1295-4272-9138-f99709370657
apps/codecs/wma.c