vlc | branch: master | Francois Cartegnie <[email protected]> | Wed Dec 23 
12:05:26 2015 +0100| [25bc227153881f55a0536dd3759497e975a7ed19] | committer: 
Francois Cartegnie

packetizer: h264: check for null block

corner case when frame contains only AU delimiter

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

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

diff --git a/modules/packetizer/h264.c b/modules/packetizer/h264.c
index 69efc61..b96f7b5 100644
--- a/modules/packetizer/h264.c
+++ b/modules/packetizer/h264.c
@@ -606,7 +606,9 @@ static block_t *OutputPicture( decoder_t *p_dec )
             p_head->p_next = p_list;
         else
             p_head = p_list;
-        block_ChainAppend( &p_head, p_sys->p_frame );
+
+        if( p_sys->p_frame )
+            block_ChainAppend( &p_head, p_sys->p_frame );
 
         p_pic = block_ChainGather( p_head );
     }

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

Reply via email to