Commit e9b9ab2a authored by François Cartegnie's avatar François Cartegnie 🤞

demux: ts: sections: remove packet size check

parent 05413606
......@@ -22,7 +22,6 @@
#endif
#include <vlc_common.h>
#include <vlc_block.h>
#include <vlc_demux.h>
#include "ts_pid.h"
......@@ -140,20 +139,11 @@ void ts_sections_processor_Reset( ts_sections_processor_t *p_chain )
}
void ts_sections_processor_Push( ts_sections_processor_t *p_chain,
block_t *p_pkt )
const uint8_t *p_buf )
{
if(likely(p_pkt->i_buffer >= 188 ))
for( ts_sections_processor_t *p_proc = p_chain;
p_proc; p_proc = p_proc->p_next )
{
for( ts_sections_processor_t *p_proc = p_chain;
p_proc; p_proc = p_proc->p_next )
{
dvbpsi_packet_push( p_chain->p_dvbpsi, p_pkt->p_buffer );
}
dvbpsi_packet_push( p_chain->p_dvbpsi, (uint8_t *) p_buf );
}
else
{
assert( p_pkt->i_buffer >= 188 );
}
block_Release( p_pkt );
}
......@@ -38,5 +38,5 @@ void ts_sections_processor_ChainDelete( ts_sections_processor_t *p_chain );
void ts_sections_processor_Reset( ts_sections_processor_t *p_chain );
void ts_sections_processor_Push( ts_sections_processor_t *p_chain,
block_t *p_pkt );
const uint8_t * );
#endif
......@@ -709,7 +709,7 @@ static int Demux( demux_t *p_demux )
else if( p_pid->u.p_pes->transport == TS_TRANSPORT_SECTIONS &&
!(p_pkt->i_flags & BLOCK_FLAG_SCRAMBLED) )
{
ts_sections_processor_Push( p_pid->u.p_pes->p_sections_proc, p_pkt );
ts_sections_processor_Push( p_pid->u.p_pes->p_sections_proc, p_pkt->p_buffer );
b_frame = true;
}
else // pid->u.p_pes->transport == TS_TRANSPORT_IGNORE
......
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