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
6da28de4
Commit
6da28de4
authored
Dec 23, 2015
by
Steve Lhomme
Committed by
Jean-Baptiste Kempf
Dec 23, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chromecast: use U32_AT instead of memcpy() + hton32()
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
ed7660f5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
modules/stream_out/chromecast/chromecast_ctrl.cpp
modules/stream_out/chromecast/chromecast_ctrl.cpp
+1
-2
No files found.
modules/stream_out/chromecast/chromecast_ctrl.cpp
View file @
6da28de4
...
@@ -173,8 +173,7 @@ extern "C" int recvPacket(sout_stream_t *p_stream, bool &b_msgReceived,
...
@@ -173,8 +173,7 @@ extern "C" int recvPacket(sout_stream_t *p_stream, bool &b_msgReceived,
// We receive the payload.
// We receive the payload.
// Get the size of the payload
// Get the size of the payload
memcpy
(
&
i_payloadSize
,
p_data
,
PACKET_HEADER_LEN
);
i_payloadSize
=
U32_AT
(
p_data
);
i_payloadSize
=
hton32
(
i_payloadSize
);
const
uint32_t
i_maxPayloadSize
=
PACKET_MAX_LEN
-
PACKET_HEADER_LEN
;
const
uint32_t
i_maxPayloadSize
=
PACKET_MAX_LEN
-
PACKET_HEADER_LEN
;
if
(
i_payloadSize
>
i_maxPayloadSize
)
if
(
i_payloadSize
>
i_maxPayloadSize
)
...
...
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