[vlc-commits] packetizer: hevc: fix null deref regression

Francois Cartegnie git at videolan.org
Fri Mar 8 16:03:14 CET 2019


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



More information about the vlc-commits mailing list