rtmpcrypt: Do the xtea decryption in little endian mode
authorMartin Storsjö <martin@martin.st>
Wed, 11 Nov 2015 20:11:19 +0000 (22:11 +0200)
committerMartin Storsjö <martin@martin.st>
Fri, 13 Nov 2015 19:53:57 +0000 (21:53 +0200)
commit588b6215b4c74945994eb9636b0699028c069ed2
treea3fa726d8df4c1a9624440e8b102e6f2544337db
parent92d107a17127c29036b71e53315a2c702960819a
rtmpcrypt: Do the xtea decryption in little endian mode

The XTEA algorithm operates on 32 bit numbers, not on byte sequences.
The XTEA implementation in libavutil is written assuming big endian
numbers, while the rtmpe signature encryption assumes little endian.

This fixes rtmpe communication with rtmpe servers that use signature
type 8 (XTEA), e.g. crunchyroll.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/rtmpcrypt.c