Commit f3901fbd authored by Tristan Matthews's avatar Tristan Matthews

packetizer: flac: fix realloc call

parent f5470b58
...@@ -607,9 +607,10 @@ static block_t *Packetize(decoder_t *p_dec, block_t **pp_block) ...@@ -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. */ * We'll update it as we look for the next start code. */
if (p_sys->i_buf < p_sys->i_frame_size) if (p_sys->i_buf < p_sys->i_frame_size)
{ {
p_sys->p_buf = realloc(p_sys->p_buf, p_sys->i_frame_size); uint8_t *p_buf = realloc(p_sys->p_buf, p_sys->i_frame_size);
if (!p_sys->p_buf) if (!p_buf)
return NULL; return NULL;
p_sys->p_buf = p_buf;
p_sys->i_buf = p_sys->i_frame_size; p_sys->i_buf = p_sys->i_frame_size;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment