Fix reading of WavPack streams without a length information in the header

When the WavPack's total_samples header fiels contains -1, try to find
the final block and get the number of samples from there as
block_index + block_samples.

BUG:258016


git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@1201476 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
Lukáš Lalinský
2010-11-27 20:58:57 +00:00
parent 15d139e271
commit 56343767ce
8 changed files with 99 additions and 7 deletions

View File

@ -12,7 +12,8 @@ INCLUDES = \
-I$(top_srcdir)/taglib/flac \
-I$(top_srcdir)/taglib/riff \
-I$(top_srcdir)/taglib/riff/aiff \
-I$(top_srcdir)/taglib/mpeg/id3v2/frames
-I$(top_srcdir)/taglib/mpeg/id3v2/frames \
-I$(top_srcdir)/taglib/wavpack
test_runner_SOURCES = \
main.cpp \
@ -32,7 +33,8 @@ test_runner_SOURCES = \
test_aiff.cpp \
test_ogg.cpp \
test_oggflac.cpp \
test_flac.cpp
test_flac.cpp \
test_wavpack.cpp
if build_tests
TESTS = test_runner