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
69ecf4f0
Commit
69ecf4f0
authored
Aug 22, 2007
by
Josh Coalson
Browse files
bug fixes
parent
01579092
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/flac/encode.c
View file @
69ecf4f0
...
...
@@ -1786,10 +1786,10 @@ static void static_metadata_clear(static_metadata_t *m)
static
FLAC__bool
static_metadata_append
(
static_metadata_t
*
m
,
FLAC__StreamMetadata
*
d
,
FLAC__bool
needs_delete
)
{
void
*
x
;
if
(
0
==
(
x
=
realloc
(
m
->
metadata
,
sizeof
(
*
m
->
metadata
)
*
m
->
num_metadata
+
1
)))
if
(
0
==
(
x
=
realloc
(
m
->
metadata
,
sizeof
(
*
m
->
metadata
)
*
(
m
->
num_metadata
+
1
)))
)
return
false
;
m
->
metadata
=
(
FLAC__StreamMetadata
**
)
x
;
if
(
0
==
(
x
=
realloc
(
m
->
needs_delete
,
sizeof
(
*
m
->
needs_delete
)
*
m
->
num_metadata
+
1
)))
if
(
0
==
(
x
=
realloc
(
m
->
needs_delete
,
sizeof
(
*
m
->
needs_delete
)
*
(
m
->
num_metadata
+
1
)))
)
return
false
;
m
->
needs_delete
=
(
FLAC__bool
*
)
x
;
m
->
metadata
[
m
->
num_metadata
]
=
d
;
...
...
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