[vlc-commits] packetizer: mpegvideo: check block gather

Francois Cartegnie git at videolan.org
Mon Jun 12 17:09:11 CEST 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Jun 12 17:07:29 2017 +0200| [4fc051a46218531f5228e87b042ce55e77624383] | committer: Francois Cartegnie

packetizer: mpegvideo: check block gather

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

 modules/packetizer/mpegvideo.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/packetizer/mpegvideo.c b/modules/packetizer/mpegvideo.c
index b716115320..a538582322 100644
--- a/modules/packetizer/mpegvideo.c
+++ b/modules/packetizer/mpegvideo.c
@@ -418,6 +418,8 @@ static block_t *ParseMPEGBlock( decoder_t *p_dec, block_t *p_frag )
         }
 
         p_pic = block_ChainGather( p_sys->p_frame );
+        if( p_pic == NULL )
+            return p_pic;
 
         if( b_eos )
             p_pic->i_flags |= BLOCK_FLAG_END_OF_SEQUENCE;



More information about the vlc-commits mailing list