Commit cc3116b8 authored by François Cartegnie's avatar François Cartegnie 🤞 Committed by Jean-Baptiste Kempf

packetizer: hevc: sync on IRAP

(cherry picked from commit 68fa58bc)
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent b1bd74d2
......@@ -629,13 +629,13 @@ static block_t * ParseAUHead(decoder_t *p_dec, uint8_t i_nal_type, block_t *p_na
block_t *p_ret = NULL;
if(p_sys->post.p_chain || p_sys->frame.p_chain)
p_ret = OutputQueues(p_sys, true);
p_ret = OutputQueues(p_sys, p_sys->b_init_sequence_complete);
switch(i_nal_type)
{
case HEVC_NAL_AUD:
if(!p_ret && p_sys->pre.p_chain)
p_ret = OutputQueues(p_sys, true);
p_ret = OutputQueues(p_sys, p_sys->b_init_sequence_complete);
break;
case HEVC_NAL_VPS:
......@@ -673,7 +673,7 @@ static block_t * ParseAUTail(decoder_t *p_dec, uint8_t i_nal_type, block_t *p_na
{
case HEVC_NAL_EOS:
case HEVC_NAL_EOB:
p_ret = OutputQueues(p_sys, true);
p_ret = OutputQueues(p_sys, p_sys->b_init_sequence_complete);
if( p_ret )
p_ret->i_flags |= BLOCK_FLAG_END_OF_SEQUENCE;
break;
......
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