[vlc-commits] packetizer: h264: blockchaingather can fail

Francois Cartegnie git at videolan.org
Wed Mar 15 16:00:27 CET 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | 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 )
     {



More information about the vlc-commits mailing list