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
542a2f7b
Commit
542a2f7b
authored
Aug 31, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use common RTP header formatting for RTP/TS
parent
51ebb68b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
12 deletions
+1
-12
modules/stream_out/rtp.c
modules/stream_out/rtp.c
+1
-12
No files found.
modules/stream_out/rtp.c
View file @
542a2f7b
...
...
@@ -2056,7 +2056,6 @@ static int AccessOutGrabberWriteBuffer( sout_stream_t *p_stream,
sout_stream_id_t
*
id
=
p_sys
->
es
[
0
];
int64_t
i_dts
=
p_buffer
->
i_dts
;
uint32_t
i_timestamp
=
i_dts
*
9
/
100
;
uint8_t
*
p_data
=
p_buffer
->
p_buffer
;
unsigned
int
i_data
=
p_buffer
->
i_buffer
;
...
...
@@ -2080,17 +2079,7 @@ static int AccessOutGrabberWriteBuffer( sout_stream_t *p_stream,
{
/* allocate a new packet */
p_sys
->
packet
=
block_New
(
p_stream
,
id
->
i_mtu
);
p_sys
->
packet
->
p_buffer
[
0
]
=
0x80
;
p_sys
->
packet
->
p_buffer
[
1
]
=
0x80
|
id
->
i_payload_type
;
p_sys
->
packet
->
p_buffer
[
2
]
=
(
id
->
i_sequence
>>
8
)
&
0xff
;
p_sys
->
packet
->
p_buffer
[
3
]
=
(
id
->
i_sequence
)
&
0xff
;
p_sys
->
packet
->
p_buffer
[
4
]
=
(
i_timestamp
>>
24
)
&
0xff
;
p_sys
->
packet
->
p_buffer
[
5
]
=
(
i_timestamp
>>
16
)
&
0xff
;
p_sys
->
packet
->
p_buffer
[
6
]
=
(
i_timestamp
>>
8
)
&
0xff
;
p_sys
->
packet
->
p_buffer
[
7
]
=
(
i_timestamp
)
&
0xff
;
memcpy
(
p_sys
->
packet
->
p_buffer
+
8
,
id
->
ssrc
,
4
);
p_sys
->
packet
->
i_buffer
=
12
;
rtp_packetize_common
(
id
,
p_sys
->
packet
,
1
,
i_dts
);
p_sys
->
packet
->
i_dts
=
i_dts
;
p_sys
->
packet
->
i_length
=
p_buffer
->
i_length
/
i_packet
;
i_dts
+=
p_sys
->
packet
->
i_length
;
...
...
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