[vlc-commits] packetizer: av1: fix segfault on invalid OBU
Francois Cartegnie
git at videolan.org
Wed Oct 10 10:48:22 CEST 2018
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Oct 10 10:31:23 2018 +0200| [70e36e296718660bf4868a859aabcc9f948e3ca3] | committer: Francois Cartegnie
packetizer: av1: fix segfault on invalid OBU
refs #21275
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=70e36e296718660bf4868a859aabcc9f948e3ca3
---
modules/packetizer/av1.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/packetizer/av1.c b/modules/packetizer/av1.c
index 02b6815292..f30d3434a1 100644
--- a/modules/packetizer/av1.c
+++ b/modules/packetizer/av1.c
@@ -446,6 +446,7 @@ static block_t *PacketizeOBU(decoder_t *p_dec, block_t **pp_block)
{
msg_Warn(p_dec,"Invalid OBU header in sequence, discarding");
/* frag is not OBU, drop */
+ p_sys->obus.p_chain = p_frag->p_next;
if(p_frag->p_next == NULL)
p_sys->obus.pp_chain_last = &p_sys->obus.p_chain;
else
More information about the vlc-commits
mailing list