Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
8d87383f
Commit
8d87383f
authored
Mar 23, 2006
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Fix AMR RTP muxing. patch by Alex Antropoff <alant at transtelecom dot md>.
parent
732df260
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
modules/stream_out/rtp.c
modules/stream_out/rtp.c
+3
-3
No files found.
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
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