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

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


vlc/vlc-2.0 | branch: master | Rafaël Carré <funman at videolan.org> | Thu Jul 25 12:52:41 2013 +0200| [ed616a2206709c4b677a5d98066b4b1d4260f934] | 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.0.git/?a=commit;h=ed616a2206709c4b677a5d98066b4b1d4260f934
---

 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 e7050c7..27b307c 100644
--- a/modules/codec/avcodec/audio.c
+++ b/modules/codec/avcodec/audio.c
@@ -299,6 +299,7 @@ aout_buffer_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