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
6ccd86f3
Commit
6ccd86f3
authored
Feb 19, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Leverage Set*LE()
parent
5659c0bd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
14 deletions
+5
-14
modules/access_output/udp.c
modules/access_output/udp.c
+5
-14
No files found.
modules/access_output/udp.c
View file @
6ccd86f3
...
...
@@ -533,19 +533,10 @@ static block_t *NewUDPPacket( sout_access_out_t *p_access, mtime_t i_dts)
p_buffer
->
p_buffer
[
0
]
=
0x80
;
p_buffer
->
p_buffer
[
1
]
=
0x21
;
// mpeg2-ts
p_buffer
->
p_buffer
[
2
]
=
(
p_sys
->
i_sequence_number
>>
8
)
&
0xff
;
p_buffer
->
p_buffer
[
3
]
=
p_sys
->
i_sequence_number
&
0xff
;
SetWLE
(
p_buffer
->
p_buffer
+
2
,
p_sys
->
i_sequence_number
);
p_sys
->
i_sequence_number
++
;
p_buffer
->
p_buffer
[
4
]
=
(
i_timestamp
>>
24
)
&
0xff
;
p_buffer
->
p_buffer
[
5
]
=
(
i_timestamp
>>
16
)
&
0xff
;
p_buffer
->
p_buffer
[
6
]
=
(
i_timestamp
>>
8
)
&
0xff
;
p_buffer
->
p_buffer
[
7
]
=
i_timestamp
&
0xff
;
p_buffer
->
p_buffer
[
8
]
=
(
p_sys
->
i_ssrc
>>
24
)
&
0xff
;
p_buffer
->
p_buffer
[
9
]
=
(
p_sys
->
i_ssrc
>>
16
)
&
0xff
;
p_buffer
->
p_buffer
[
10
]
=
(
p_sys
->
i_ssrc
>>
8
)
&
0xff
;
p_buffer
->
p_buffer
[
11
]
=
p_sys
->
i_ssrc
&
0xff
;
SetDWLE
(
p_buffer
->
p_buffer
+
4
,
i_timestamp
);
SetDWLE
(
p_buffer
->
p_buffer
+
8
,
p_sys
->
i_ssrc
);
p_buffer
->
i_buffer
=
RTP_HEADER_LENGTH
;
}
...
...
@@ -579,7 +570,7 @@ static void ThreadWrite( vlc_object_t *p_this )
while( p_tmp ) { p_tmp = p_tmp->p_next; i++;}
p_tmp = p_thread->p_fifo->p_first;
while( p_tmp ) { p_tmp = p_tmp->p_next; j++;}
msg_Err
( p_thread, "fifo depth: %d/%d, empty blocks: %d/%d",
msg_Dbg
( p_thread, "fifo depth: %d/%d, empty blocks: %d/%d",
p_thread->p_fifo->i_depth, j,p_thread->p_empty_blocks->i_depth,i );
}
#endif
...
...
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