Commit 267b3701 authored by François Cartegnie's avatar François Cartegnie 🤞

demux: pva: remove usage of abort

parent 3a8926f4
......@@ -221,9 +221,8 @@ static int Demux( demux_t *p_demux )
}
p_frame = block_ChainGather( p_frame );
if( unlikely(p_frame == NULL) )
abort();
es_out_Send( p_demux->out, p_sys->p_video, p_frame );
if( likely(p_frame) )
es_out_Send( p_demux->out, p_sys->p_video, p_frame );
p_sys->p_es = NULL;
}
......@@ -440,7 +439,7 @@ static void ParsePES( demux_t *p_demux )
p_pes = block_ChainGather( p_pes );
if( unlikely(p_pes == NULL) )
abort();
return;
if( p_pes->i_buffer <= i_skip )
{
block_ChainRelease( p_pes );
......
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