mirror of
https://github.com/claunia/flac.git
synced 2025-12-16 18:54:26 +00:00
additions to metadata object api: more vorbiscomment functions, trailing-null on vorbis comment field values enforced everywhere
This commit is contained in:
@@ -500,8 +500,8 @@ static bool generate_file_()
|
||||
vorbiscomment.type = FLAC__METADATA_TYPE_VORBIS_COMMENT;
|
||||
vorbiscomment.length = (4 + vendor_string_length) + 4;
|
||||
vorbiscomment.data.vorbis_comment.vendor_string.length = vendor_string_length;
|
||||
vorbiscomment.data.vorbis_comment.vendor_string.entry = (FLAC__byte*)malloc_or_die_(vendor_string_length);
|
||||
memcpy(vorbiscomment.data.vorbis_comment.vendor_string.entry, FLAC__VENDOR_STRING, vendor_string_length);
|
||||
vorbiscomment.data.vorbis_comment.vendor_string.entry = (FLAC__byte*)malloc_or_die_(vendor_string_length+1);
|
||||
memcpy(vorbiscomment.data.vorbis_comment.vendor_string.entry, FLAC__VENDOR_STRING, vendor_string_length+1);
|
||||
vorbiscomment.data.vorbis_comment.num_comments = 0;
|
||||
vorbiscomment.data.vorbis_comment.comments = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user