[vlc-commits] araw: handle error

Rémi Denis-Courmont git at videolan.org
Mon Jul 24 18:32:34 CEST 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jul 24 19:30:15 2017 +0300| [5f341b5798727d0106febf3e2c787d92566d0ae7] | committer: Rémi Denis-Courmont

araw: handle error

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

 modules/codec/araw.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/codec/araw.c b/modules/codec/araw.c
index 6b432e761f..fcac471d73 100644
--- a/modules/codec/araw.c
+++ b/modules/codec/araw.c
@@ -364,7 +364,8 @@ static int DecodeBlock( decoder_t *p_dec, block_t *p_block )
     }
     else
     {
-        decoder_UpdateAudioFormat( p_dec );
+        if( decoder_UpdateAudioFormat( p_dec ) )
+            goto skip;
         p_block->i_nb_samples = samples;
         p_block->i_buffer = samples * (p_sys->framebits / 8);
     }



More information about the vlc-commits mailing list