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
Stefan Strogin
flac
Commits
da2dcd04
Commit
da2dcd04
authored
Sep 25, 2002
by
Josh Coalson
Browse files
minor cosmetics
parent
07b4fb77
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/libFLAC/stream_encoder_framing.c
View file @
da2dcd04
...
...
@@ -107,7 +107,7 @@ FLAC__bool FLAC__add_metadata_block(const FLAC__StreamMetadata *metadata, FLAC__
case
FLAC__METADATA_TYPE_VORBIS_COMMENT
:
if
(
!
FLAC__bitbuffer_write_raw_uint32_little_endian
(
bb
,
vendor_string_length
))
return
false
;
if
(
!
FLAC__bitbuffer_write_byte_block
(
bb
,
FLAC__VENDOR_STRING
,
vendor_string_length
))
if
(
!
FLAC__bitbuffer_write_byte_block
(
bb
,
(
const
FLAC__byte
*
)
FLAC__VENDOR_STRING
,
vendor_string_length
))
return
false
;
if
(
!
FLAC__bitbuffer_write_raw_uint32_little_endian
(
bb
,
metadata
->
data
.
vorbis_comment
.
num_comments
))
return
false
;
...
...
src/test_libFLAC++/decoders.cc
View file @
da2dcd04
...
...
@@ -104,7 +104,7 @@ static void init_metadata_blocks_()
application2_
.
data
.
application
.
data
=
0
;
{
const
unsigned
vendor_string_length
=
(
unsigned
)
strlen
(
(
const
char
*
)
FLAC__VENDOR_STRING
);
const
unsigned
vendor_string_length
=
(
unsigned
)
strlen
(
FLAC__VENDOR_STRING
);
vorbiscomment_
.
is_last
=
true
;
vorbiscomment_
.
type
=
FLAC__METADATA_TYPE_VORBIS_COMMENT
;
vorbiscomment_
.
length
=
(
4
+
vendor_string_length
)
+
4
+
(
4
+
5
)
+
(
4
+
0
);
...
...
src/test_libFLAC++/metadata_manip.cc
View file @
da2dcd04
...
...
@@ -286,7 +286,7 @@ static bool generate_file_()
memset
(
streaminfo
.
data
.
stream_info
.
md5sum
,
0
,
16
);
{
const
unsigned
vendor_string_length
=
(
unsigned
)
strlen
(
(
const
char
*
)
FLAC__VENDOR_STRING
);
const
unsigned
vendor_string_length
=
(
unsigned
)
strlen
(
FLAC__VENDOR_STRING
);
vorbiscomment
.
is_last
=
false
;
vorbiscomment
.
type
=
FLAC__METADATA_TYPE_VORBIS_COMMENT
;
vorbiscomment
.
length
=
(
4
+
vendor_string_length
)
+
4
;
...
...
src/test_libOggFLAC++/decoders.cc
View file @
da2dcd04
...
...
@@ -104,7 +104,7 @@ static void init_metadata_blocks_()
application2_
.
data
.
application
.
data
=
0
;
{
const
unsigned
vendor_string_length
=
(
unsigned
)
strlen
(
(
const
char
*
)
FLAC__VENDOR_STRING
);
const
unsigned
vendor_string_length
=
(
unsigned
)
strlen
(
FLAC__VENDOR_STRING
);
vorbiscomment_
.
is_last
=
true
;
vorbiscomment_
.
type
=
FLAC__METADATA_TYPE_VORBIS_COMMENT
;
vorbiscomment_
.
length
=
(
4
+
vendor_string_length
)
+
4
+
(
4
+
5
)
+
(
4
+
0
);
...
...
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