update to match new default vorbis comment size (now with vendor string)

This commit is contained in:
Josh Coalson
2002-10-26 04:28:57 +00:00
parent c6ea43bca3
commit 71db5ee7dc
2 changed files with 2 additions and 2 deletions

View File

@@ -608,7 +608,7 @@ FLAC__bool test_metadata_object()
printf("FAILED, returned NULL\n");
return false;
}
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->length != expected_length) {
printf("FAILED, bad length, expected %u, got %u\n", expected_length, block->length);
return false;