Commit 6da28de4 authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

chromecast: use U32_AT instead of memcpy() + hton32()

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent ed7660f5
......@@ -173,8 +173,7 @@ extern "C" int recvPacket(sout_stream_t *p_stream, bool &b_msgReceived,
// We receive the payload.
// Get the size of the payload
memcpy(&i_payloadSize, p_data, PACKET_HEADER_LEN);
i_payloadSize = hton32(i_payloadSize);
i_payloadSize = U32_AT( p_data );
const uint32_t i_maxPayloadSize = PACKET_MAX_LEN - PACKET_HEADER_LEN;
if (i_payloadSize > i_maxPayloadSize)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment