Commit 2899ca34 authored by François Cartegnie's avatar François Cartegnie 🤞

demux: ts: ignore null packets

parent a30e6f28
......@@ -2393,6 +2393,13 @@ static block_t * ProcessTSPacket( demux_t *p_demux, ts_pid_t *pid, block_t *p_pk
b_payload, i_cc );
#endif
/* Drop null packets */
if( unlikely(pid->i_pid == 0x1FFF) )
{
block_Release( p_pkt );
return NULL;
}
/* For now, ignore additional error correction
* TODO: handle Reed-Solomon 204,188 error correction */
p_pkt->i_buffer = TS_PACKET_SIZE_188;
......
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