[vlc-commits] avcodec audio: update block pointer on realloc

Rafaël Carré git at videolan.org
Thu Jul 25 12:55:52 CEST 2013


vlc/vlc-2.1 | branch: master | Rafaël Carré <funman at videolan.org> | Thu Jul 25 12:52:41 2013 +0200| [938d2d7bc95e0b05307428d018328180223da0de] | committer: Jean-Baptiste Kempf

avcodec audio: update block pointer on realloc

(cherry picked from commit 458ba518b6dd025fa2fc641d6e96bea1f0af0cfb)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=938d2d7bc95e0b05307428d018328180223da0de
---

 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