[vlc-commits] avcodec audioo: update block pointer on realloc
Rafaël Carré
git at videolan.org
Thu Jul 25 12:53:02 CEST 2013
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Thu Jul 25 12:52:41 2013 +0200| [e7876dc265a795f576d8f60691e8cf8d325840bb] | committer: Rafaël Carré
avcodec audioo: update block pointer on realloc
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e7876dc265a795f576d8f60691e8cf8d325840bb
---
modules/codec/avcodec/audio.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/codec/avcodec/audio.c b/modules/codec/avcodec/audio.c
index b2f70ff..d6c0313 100644
--- a/modules/codec/avcodec/audio.c
+++ b/modules/codec/avcodec/audio.c
@@ -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 );
More information about the vlc-commits
mailing list