Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
c7a9cb60
Commit
c7a9cb60
authored
Jun 11, 2008
by
Rémi Denis-Courmont
Browse files
Another ptime fix
parent
6cd917a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/stream_out/rtp.c
View file @
c7a9cb60
...
...
@@ -826,7 +826,7 @@ rtp_set_ptime (sout_stream_id_t *id, unsigned ptime_ms, size_t bytes)
if
(
spl
<
rtp_mtu
(
id
))
/* MTU is big enough for ptime */
id
->
i_mtu
=
12
+
spl
;
else
/* MTU is too small for ptime, align to a sample boundary */
id
->
i_mtu
=
(
id
->
i_mtu
/
bytes
)
*
bytes
;
id
->
i_mtu
=
12
+
((
(
id
->
i_mtu
-
12
)
/
bytes
)
*
bytes
)
;
}
/** Add an ES as a new RTP stream */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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