vlc | branch: master | Tristan Matthews <[email protected]> | Fri Nov 21 13:43:33 2014 -0500| [f3901fbd7ccc83b218f05ff5ff4dbc5eb6928057] | committer: Tristan Matthews
packetizer: flac: fix realloc call > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f3901fbd7ccc83b218f05ff5ff4dbc5eb6928057 --- modules/packetizer/flac.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/packetizer/flac.c b/modules/packetizer/flac.c index 25f1957..e8e8298 100644 --- 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; } _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
