Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
eefa50f8
Commit
eefa50f8
authored
Jun 09, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup
parent
00735462
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
modules/access/dvdnav.c
modules/access/dvdnav.c
+1
-1
modules/access/rtp/session.c
modules/access/rtp/session.c
+2
-3
modules/stream_out/rtp.c
modules/stream_out/rtp.c
+1
-1
No files found.
modules/access/dvdnav.c
View file @
eefa50f8
...
...
@@ -666,7 +666,7 @@ static int Demux( demux_t *p_demux )
if
(
event
->
length
!=
0xff
&&
p_sys
->
still
.
b_created
)
{
mtime_t
delay
=
event
->
length
*
INT64_C
(
1
)
*
CLOCK_FREQ
;
mtime_t
delay
=
event
->
length
*
CLOCK_FREQ
;
vlc_timer_schedule
(
&
p_sys
->
still
.
timer
,
false
,
delay
,
0
);
}
...
...
modules/access/rtp/session.c
View file @
eefa50f8
...
...
@@ -409,7 +409,7 @@ rtp_decode (demux_t *demux, const rtp_session_t *session, rtp_source_t *src)
/* FIXME: handle timestamp wrap properly */
/* TODO: inter-medias/sessions sync (using RTCP-SR) */
const
uint32_t
timestamp
=
rtp_timestamp
(
block
);
block
->
i_pts
=
UINT64_C
(
1
)
*
CLOCK_FREQ
*
timestamp
/
pt
->
frequency
;
block
->
i_pts
=
CLOCK_FREQ
*
timestamp
/
pt
->
frequency
;
/* CSRC count */
size_t
skip
=
12u
+
(
block
->
p_buffer
[
0
]
&
0x0F
)
*
4
;
...
...
@@ -489,8 +489,7 @@ bool rtp_dequeue (demux_t *demux, const rtp_session_t *session,
mtime_t
deadline
=
src
->
last_rx
;
const
rtp_pt_t
*
pt
=
rtp_find_ptype
(
session
,
src
,
block
,
NULL
);
if
(
pt
)
deadline
+=
UINT64_C
(
3
)
*
CLOCK_FREQ
*
src
->
jitter
/
pt
->
frequency
;
deadline
+=
CLOCK_FREQ
*
3
*
src
->
jitter
/
pt
->
frequency
;
if
(
now
>=
deadline
)
{
...
...
modules/stream_out/rtp.c
View file @
eefa50f8
...
...
@@ -1631,7 +1631,7 @@ unsigned rtp_get_num( const sout_stream_id_t *id )
void
rtp_packetize_common
(
sout_stream_id_t
*
id
,
block_t
*
out
,
int
b_marker
,
int64_t
i_pts
)
{
uint32_t
i_timestamp
=
i_pts
*
(
int64_t
)
id
->
i_clock_rate
/
INT64_C
(
CLOCK_FREQ
)
;
uint32_t
i_timestamp
=
i_pts
*
(
int64_t
)
id
->
i_clock_rate
/
CLOCK_FREQ
;
out
->
p_buffer
[
0
]
=
0x80
;
out
->
p_buffer
[
1
]
=
(
b_marker
?
0x80
:
0x00
)
|
id
->
i_payload_type
;
...
...
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