Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
3e3e4050
Commit
3e3e4050
authored
Jun 08, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RTP: set the discontinuity flag as appropriate
parent
2487f4b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
modules/demux/rtpsession.c
modules/demux/rtpsession.c
+7
-0
No files found.
modules/demux/rtpsession.c
View file @
3e3e4050
...
...
@@ -141,6 +141,7 @@ struct rtp_source_t
uint16_t
bad_seq
;
/* tentatively next expected sequence for resync */
uint16_t
max_seq
;
/* next expected sequence */
uint16_t
last_seq
;
/* sequence of the last dequeued packet */
block_t
*
blocks
;
/* re-ordered blocks queue */
void
*
opaque
[
0
];
/* Per-source private payload data */
};
...
...
@@ -160,6 +161,7 @@ rtp_source_create (demux_t *demux, const rtp_session_t *session,
source
->
ssrc
=
ssrc
;
source
->
max_seq
=
source
->
bad_seq
=
init_seq
;
source
->
last_seq
=
init_seq
-
1
;
source
->
blocks
=
NULL
;
/* Initializes all payload */
...
...
@@ -324,6 +326,11 @@ rtp_decode (demux_t *demux, const rtp_session_t *session, rtp_source_t *src)
src
->
blocks
=
block
->
p_next
;
block
->
p_next
=
NULL
;
/* Discontinuity detection */
if
(((
src
->
last_seq
+
1
)
&
0xffff
)
!=
rtp_seq
(
block
))
block
->
i_flags
|=
BLOCK_FLAG_DISCONTINUITY
;
src
->
last_seq
=
rtp_seq
(
block
);
/* Match the payload type */
const
rtp_pt_t
*
pt
=
NULL
;
void
*
pt_data
=
NULL
;
...
...
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