Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
d8c32a08
Commit
d8c32a08
authored
Sep 06, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RTP: ignore packets with duplicated sequence numbers (closes #2003)
parent
6946f7ac
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
modules/demux/rtpsession.c
modules/demux/rtpsession.c
+4
-1
No files found.
modules/demux/rtpsession.c
View file @
d8c32a08
...
@@ -306,8 +306,11 @@ rtp_receive (demux_t *demux, rtp_session_t *session, block_t *block)
...
@@ -306,8 +306,11 @@ rtp_receive (demux_t *demux, rtp_session_t *session, block_t *block)
block_t
**
pp
=
&
src
->
blocks
;
block_t
**
pp
=
&
src
->
blocks
;
for
(
block_t
*
prev
=
*
pp
;
prev
!=
NULL
;
prev
=
*
pp
)
for
(
block_t
*
prev
=
*
pp
;
prev
!=
NULL
;
prev
=
*
pp
)
{
{
if
((
int16_t
)(
seq
-
rtp_seq
(
*
pp
))
<
0
)
int16_t
delta_seq
=
seq
-
rtp_seq
(
prev
);
if
(
delta_seq
<
0
)
break
;
break
;
if
(
delta_seq
==
0
)
goto
drop
;
/* duplicate */
pp
=
&
prev
->
p_next
;
pp
=
&
prev
->
p_next
;
}
}
block
->
p_next
=
*
pp
;
block
->
p_next
=
*
pp
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment