[dvblast-devel] [Git][videolan/dvblast][master] 2 commits: Ignore non-TS RTP packets
Christophe Massiot (@cmassiot)
gitlab at videolan.org
Mon Jun 15 12:57:03 UTC 2026
Christophe Massiot pushed to branch master at VideoLAN / dvblast
Commits:
35c335a5 by Arnaud de Turckheim at 2026-06-12T18:04:27+02:00
Ignore non-TS RTP packets
Some FEC protocols allow trasnmitting non-TS RTP packets on the same
port as the original TS stream.
- - - - -
c322077f by Christophe Massiot at 2026-06-15T14:56:52+02:00
Merge branch 'quarium-master'
- - - - -
1 changed file:
- udp.c
Changes:
=====================================
udp.c
=====================================
@@ -61,6 +61,7 @@ static uint16_t i_seqnum = 0;
static bool b_sync = false;
static mtime_t i_last_print = 0;
static struct sockaddr_storage last_addr;
+static bool b_non_ts_warned = false;
/*****************************************************************************
* Local prototypes
@@ -373,8 +374,12 @@ static void udp_Read(struct ev_loop *loop, struct ev_io *w, int revents)
if ( !rtp_check_hdr(p_rtp_hdr) )
msg_Warn( NULL, "invalid RTP packet received" );
- if ( rtp_get_type(p_rtp_hdr) != RTP_TYPE_TS )
- msg_Warn( NULL, "non-TS RTP packet received" );
+ if ( rtp_get_type(p_rtp_hdr) != RTP_TYPE_TS ) {
+ if ( !b_non_ts_warned )
+ msg_Warn( NULL, "non-TS RTP packet received, dropping..." );
+ b_non_ts_warned = true;
+ goto err;
+ }
rtp_get_ssrc(p_rtp_hdr, pi_new_ssrc);
if ( !memcmp( pi_ssrc, pi_new_ssrc, 4 * sizeof(uint8_t) ) )
{
View it on GitLab: https://code.videolan.org/videolan/dvblast/-/compare/ae6b24ae8cdf6eaa1ada8534a257258f3c906a77...c322077feef908a0187ac514025de55cf1b14999
--
View it on GitLab: https://code.videolan.org/videolan/dvblast/-/compare/ae6b24ae8cdf6eaa1ada8534a257258f3c906a77...c322077feef908a0187ac514025de55cf1b14999
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help
More information about the dvblast-devel
mailing list