[vlc-commits] codec: flac: fail decoder on init failure
Francois Cartegnie
git at videolan.org
Fri Apr 14 19:18:19 CEST 2017
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | 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;
More information about the vlc-commits
mailing list