Commit 225c7acc authored by François Cartegnie's avatar François Cartegnie 🤞

packetizer: hevc: don't overwrite chain on error (fix #17632)

parent eef513b0
......@@ -412,7 +412,7 @@ static block_t *ParseVCL(decoder_t *p_dec, uint8_t i_nal_type, block_t *p_frag)
if(unlikely(!hxxx_strip_AnnexB_startcode(&p_buffer, &i_buffer) || i_buffer < 3))
{
block_ChainAppend(&p_sys->frame.p_chain, p_frag); /* might be corrupted */
block_ChainLastAppend(&p_sys->frame.pp_chain_last, p_frag); /* might be corrupted */
return NULL;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment