Commit 458ba518 authored by Rafaël Carré's avatar Rafaël Carré
Browse files

avcodec audio: update block pointer on realloc

parent ae2c1e4d
......@@ -264,6 +264,7 @@ block_t * DecodeAudio ( decoder_t *p_dec, block_t **pp_block )
p_block = block_Realloc( p_block, 0, p_block->i_buffer + FF_INPUT_BUFFER_PADDING_SIZE );
if( !p_block )
return NULL;
*pp_block = p_block;
p_block->i_buffer -= FF_INPUT_BUFFER_PADDING_SIZE;
memset( &p_block->p_buffer[p_block->i_buffer], 0, FF_INPUT_BUFFER_PADDING_SIZE );
......
Supports Markdown
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