vlc | branch: master | Francois Cartegnie <[email protected]> | Tue Mar 14 
14:27:13 2017 +0100| [cd95f0e5e8320c75d2f7bb018bf6cf04cd700ad8] | committer: 
Francois Cartegnie

packetizer: h264: blockchaingather can fail

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

 modules/packetizer/h264.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules/packetizer/h264.c b/modules/packetizer/h264.c
index a48408f..2858594 100644
--- a/modules/packetizer/h264.c
+++ b/modules/packetizer/h264.c
@@ -617,6 +617,9 @@ static block_t *OutputPicture( decoder_t *p_dec )
         p_pic = block_ChainGather( p_sys->p_frame );
     }
 
+    if( !p_pic )
+        return NULL;
+
     unsigned i_num_clock_ts = 2;
     if( p_sys->b_frame_mbs_only == 0 )
     {

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

Reply via email to