lavf/wavdec: Fix seeking in files with unaligned offsets
authorAlexander Strasser <eclipse7@gmx.net>
Tue, 13 Aug 2013 16:36:21 +0000 (18:36 +0200)
committerAlexander Strasser <eclipse7@gmx.net>
Wed, 14 Aug 2013 20:05:41 +0000 (22:05 +0200)
commitdc2e4c2e532b80565f5fbacd3a24a6db7567c257
treeef633336a8a09383187118f4a2734bbb634f7360
parentdabfa80ce27f1e93e3d265db9d3f38a819e144af
lavf/wavdec: Fix seeking in files with unaligned offsets

A file with a prepended ID3 tag of an uneven length was found
in the wild.

Check if the wav data starts at an uneven offset and use that
information to correct the seeking calculation in wav_seek_tag,
which used to only seek to even byte positions.

Regression since ac87eaf856e0fb51917266b899bb15d19b907baf

Signed-off-by: Alexander Strasser <eclipse7@gmx.net>
libavformat/wavdec.c