[vlc-commits] packetizer: h264: check leading nal
Francois Cartegnie
git at videolan.org
Mon Dec 17 20:44:34 CET 2018
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Dec 17 20:35:01 2018 +0100| [db79d8e82c53405397cb87eca010217b7d33c78c] | committer: Francois Cartegnie
packetizer: h264: check leading nal
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=db79d8e82c53405397cb87eca010217b7d33c78c
---
modules/packetizer/h264.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/packetizer/h264.c b/modules/packetizer/h264.c
index 1893c93967..fa66523c46 100644
--- a/modules/packetizer/h264.c
+++ b/modules/packetizer/h264.c
@@ -843,7 +843,8 @@ static block_t *OutputPicture( decoder_t *p_dec )
}
/* Now rebuild NAL Sequence, inserting PPS/SPS if any */
- if( p_sys->leading.p_head->i_flags & BLOCK_FLAG_PRIVATE_AUD )
+ if( p_sys->leading.p_head &&
+ (p_sys->leading.p_head->i_flags & BLOCK_FLAG_PRIVATE_AUD) )
{
block_t *p_au = p_sys->leading.p_head;
p_sys->leading.p_head = p_au->p_next;
More information about the vlc-commits
mailing list