diff options
author | Josh Coalson <jcoalson@users.sourceforce.net> | 2002-10-26 04:28:57 +0000 |
---|---|---|
committer | Josh Coalson <jcoalson@users.sourceforce.net> | 2002-10-26 04:28:57 +0000 |
commit | 71db5ee7dc3c7d454c6cf3810d88ec2641d0513c (patch) | |
tree | 68495583d0184afc719967cb297193d518136988 /src/test_libFLAC++/metadata_object.cpp | |
parent | c6ea43bca31a59a87af07879289babb0ff6beac8 (diff) | |
download | flac-71db5ee7dc3c7d454c6cf3810d88ec2641d0513c.tar.gz |
update to match new default vorbis comment size (now with vendor string)
Diffstat (limited to 'src/test_libFLAC++/metadata_object.cpp')
-rw-r--r-- | src/test_libFLAC++/metadata_object.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test_libFLAC++/metadata_object.cpp b/src/test_libFLAC++/metadata_object.cpp index e3b15b33..21a332e2 100644 --- a/src/test_libFLAC++/metadata_object.cpp +++ b/src/test_libFLAC++/metadata_object.cpp @@ -786,7 +786,7 @@ bool test_metadata_object_vorbiscomment() FLAC::Metadata::VorbisComment block; if(!block.is_valid()) return die_("!block.is_valid()"); - expected_length = (FLAC__STREAM_METADATA_VORBIS_COMMENT_ENTRY_LENGTH_LEN + FLAC__STREAM_METADATA_VORBIS_COMMENT_NUM_COMMENTS_LEN) / 8; + expected_length = (FLAC__STREAM_METADATA_VORBIS_COMMENT_ENTRY_LENGTH_LEN/8 + strlen(::FLAC__VENDOR_STRING) + FLAC__STREAM_METADATA_VORBIS_COMMENT_NUM_COMMENTS_LEN/8); if(block.get_length() != expected_length) { printf("FAILED, bad length, expected %u, got %u\n", expected_length, block.get_length()); return false; |