Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
8d87383f
Commit
8d87383f
authored
Mar 23, 2006
by
hartman
Browse files
* Fix AMR RTP muxing. patch by Alex Antropoff <alant at transtelecom dot md>.
parent
732df260
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/stream_out/rtp.c
View file @
8d87383f
...
...
@@ -2351,12 +2351,12 @@ static int rtp_packetize_amr( sout_stream_t *p_stream, sout_stream_id_t *id,
(
in
->
i_pts
>
0
?
in
->
i_pts
:
in
->
i_dts
)
);
/* Payload header */
out
->
p_buffer
[
12
]
=
0xF0
;
/* CMR */
out
->
p_buffer
[
13
]
=
0x00
;
/* ToC */
/* FIXME: frame type */
out
->
p_buffer
[
13
]
=
p_data
[
0
]
&
0x7C
;
/* ToC */
/* FIXME: frame type */
/* FIXME: are we fed multiple frames ? */
memcpy
(
&
out
->
p_buffer
[
14
],
p_data
,
i_payload
);
memcpy
(
&
out
->
p_buffer
[
14
],
p_data
+
1
,
i_payload
-
1
);
out
->
i_buffer
=
14
+
i_payload
;
out
->
i_buffer
=
14
+
i_payload
-
1
;
out
->
i_dts
=
in
->
i_dts
+
i
*
in
->
i_length
/
i_count
;
out
->
i_length
=
in
->
i_length
/
i_count
;
...
...
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