[vlc-commits] [Git][videolan/vlc][master] demux: ts: a section pkt can't be tagged as corrupted
Steve Lhomme (@robUx4)
gitlab at videolan.org
Sun Jan 21 12:09:26 UTC 2024
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
72f4c14e by François Cartegnie at 2024-01-21T11:51:17+00:00
demux: ts: a section pkt can't be tagged as corrupted
Sections are independant packets.
Corruption from header continuity counters does not apply.
It is up to the sections assembler to deal with its own
sequences.
- - - - -
1 changed file:
- modules/demux/mpeg/ts.c
Changes:
=====================================
modules/demux/mpeg/ts.c
=====================================
@@ -753,13 +753,13 @@ static int Demux( demux_t *p_demux )
break;
case TYPE_SI:
- if( (p_pkt->i_flags & (BLOCK_FLAG_SCRAMBLED|BLOCK_FLAG_CORRUPTED)) == 0 )
+ if( (p_pkt->i_flags & BLOCK_FLAG_SCRAMBLED) == 0 )
ts_si_Packet_Push( p_pid, p_pkt->p_buffer );
block_Release( p_pkt );
break;
case TYPE_PSIP:
- if( (p_pkt->i_flags & (BLOCK_FLAG_SCRAMBLED|BLOCK_FLAG_CORRUPTED)) == 0 )
+ if( (p_pkt->i_flags & BLOCK_FLAG_SCRAMBLED) == 0 )
ts_psip_Packet_Push( p_pid, p_pkt->p_buffer );
block_Release( p_pkt );
break;
@@ -2703,7 +2703,7 @@ static bool GatherSectionsData( demux_t *p_demux, ts_pid_t *p_pid, block_t *p_pk
ts_sections_processor_Reset( p_pid->u.p_stream->p_sections_proc );
}
- if( (p_pkt->i_flags & (BLOCK_FLAG_SCRAMBLED | BLOCK_FLAG_CORRUPTED)) == 0 )
+ if( (p_pkt->i_flags & BLOCK_FLAG_SCRAMBLED) == 0 )
{
ts_sections_processor_Push( p_pid->u.p_stream->p_sections_proc, p_pkt->p_buffer );
b_ret = true;
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/72f4c14e1f5c95c726a6ce6051d3e8436b408334
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/72f4c14e1f5c95c726a6ce6051d3e8436b408334
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list