vlc | branch: master | Francois Cartegnie <[email protected]> | Fri Mar  8 
15:52:39 2019 +0100| [4a38300a4ca357af95f64218d6e60fc7da1c3210] | committer: 
Francois Cartegnie

packetizer: hevc: fix null deref regression

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

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

diff --git a/modules/packetizer/hevc.c b/modules/packetizer/hevc.c
index b60892df5d..8cba9a66b7 100644
--- a/modules/packetizer/hevc.c
+++ b/modules/packetizer/hevc.c
@@ -152,7 +152,8 @@ static block_t * OutputQueues(decoder_sys_t *p_sys, bool 
b_valid)
             }
             block_ChainLastAppend(&pp_output_last, GetXPSCopy(p_sys));
         }
-        block_ChainLastAppend(&pp_output_last, p_sys->pre.p_chain);
+        if(p_sys->pre.p_chain)
+            block_ChainLastAppend(&pp_output_last, p_sys->pre.p_chain);
         INITQ(pre);
     }
 

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

Reply via email to