git.videolan.org
/
vlc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5470b5
)
packetizer: flac: fix realloc call
author
Tristan Matthews
<tmatth@videolan.org>
Fri, 21 Nov 2014 18:43:33 +0000
(13:43 -0500)
committer
Tristan Matthews
<tmatth@videolan.org>
Fri, 21 Nov 2014 18:44:45 +0000
(13:44 -0500)
modules/packetizer/flac.c
patch
|
blob
|
history
diff --git
a/modules/packetizer/flac.c
b/modules/packetizer/flac.c
index
25f1957
..
e8e8298
100644
(file)
--- a/
modules/packetizer/flac.c
+++ b/
modules/packetizer/flac.c
@@
-607,9
+607,10
@@
static block_t *Packetize(decoder_t *p_dec, block_t **pp_block)
* We'll update it as we look for the next start code. */
if (p_sys->i_buf < p_sys->i_frame_size)
{
-
p_sys->
p_buf = realloc(p_sys->p_buf, p_sys->i_frame_size);
- if (!p_
sys->p_
buf)
+
uint8_t *
p_buf = realloc(p_sys->p_buf, p_sys->i_frame_size);
+ if (!p_buf)
return NULL;
+ p_sys->p_buf = p_buf;
p_sys->i_buf = p_sys->i_frame_size;
}