vlc | branch: master | Francois Cartegnie <[email protected]> | Fri Apr 14 
19:16:32 2017 +0200| [fae3c2aa5f074a5f49652f644adb2662a30230f4] | committer: 
Francois Cartegnie

codec: flac: fail decoder on init failure

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

 modules/codec/flac.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/modules/codec/flac.c b/modules/codec/flac.c
index 4d924b00bf..65a78ea772 100644
--- a/modules/codec/flac.c
+++ b/modules/codec/flac.c
@@ -628,7 +628,14 @@ static int DecodeBlock( decoder_t *p_dec, block_t *p_block 
)
     }
 
     if( !p_sys->b_stream_info )
+    {
         ProcessHeader( p_dec );
+        if( !p_sys->b_stream_info )
+        {
+            block_Release( p_block );
+            return VLCDEC_ECRITICAL;
+        }
+    }
 
     p_sys->p_block = p_block;
 

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to