Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Xiph.Org
flac
Commits
fc7945c1
Commit
fc7945c1
authored
Oct 17, 2002
by
Josh Coalson
Browse files
fix bug in vorbis comment construction
parent
b2c94096
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/test_libFLAC++/metadata_object.cpp
View file @
fc7945c1
...
...
@@ -80,10 +80,10 @@ static void init_metadata_blocks_()
vorbiscomment_
.
is_last
=
true
;
vorbiscomment_
.
type
=
::
FLAC__METADATA_TYPE_VORBIS_COMMENT
;
vorbiscomment_
.
length
=
(
4
+
8
)
+
4
+
(
4
+
5
)
+
(
4
+
0
);
vorbiscomment_
.
length
=
(
4
+
5
)
+
4
+
(
4
+
12
)
+
(
4
+
12
);
vorbiscomment_
.
data
.
vorbis_comment
.
vendor_string
.
length
=
5
;
vorbiscomment_
.
data
.
vorbis_comment
.
vendor_string
.
entry
=
(
FLAC__byte
*
)
malloc_or_die_
(
5
);
memcpy
(
vorbiscomment_
.
data
.
vorbis_comment
.
vendor_string
.
entry
,
"name0"
,
8
);
memcpy
(
vorbiscomment_
.
data
.
vorbis_comment
.
vendor_string
.
entry
,
"name0"
,
5
);
vorbiscomment_
.
data
.
vorbis_comment
.
num_comments
=
2
;
vorbiscomment_
.
data
.
vorbis_comment
.
comments
=
(
::
FLAC__StreamMetadata_VorbisComment_Entry
*
)
malloc_or_die_
(
vorbiscomment_
.
data
.
vorbis_comment
.
num_comments
*
sizeof
(
::
FLAC__StreamMetadata_VorbisComment_Entry
));
vorbiscomment_
.
data
.
vorbis_comment
.
comments
[
0
].
length
=
12
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment