[vlc-commits] aes3: set p_aout_buffer before bailing

Tristan Matthews git at videolan.org
Mon Sep 26 17:32:55 CEST 2016


vlc | branch: master | Tristan Matthews <tmatth at videolan.org> | Mon Sep 26 11:29:14 2016 -0400| [eeddbc4c4f73088512b0658028e84eb7adde3985] | committer: Tristan Matthews

aes3: set p_aout_buffer before bailing

Otherwise it was returned uninitialized.

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

 modules/codec/aes3.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/codec/aes3.c b/modules/codec/aes3.c
index 70b02c3..f0b60b8 100644
--- a/modules/codec/aes3.c
+++ b/modules/codec/aes3.c
@@ -147,7 +147,11 @@ static block_t *Decode( decoder_t *p_dec, block_t **pp_block )
         return NULL;
 
     if( decoder_UpdateAudioFormat( p_dec ) )
+    {
+        p_aout_buffer = NULL;
         goto exit;
+    }
+
     p_aout_buffer = decoder_NewAudioBuffer( p_dec, i_frame_length );
     if( p_aout_buffer == NULL )
         goto exit;



More information about the vlc-commits mailing list