rtmpcrypt: Do the xtea decryption in little endian mode
authorMartin Storsjö <martin@martin.st>
Wed, 11 Nov 2015 19:42:02 +0000 (21:42 +0200)
committerMartin Storsjö <martin@martin.st>
Fri, 13 Nov 2015 20:11:39 +0000 (22:11 +0200)
commite7728319b92dbb4fb949155e33de7ff5358ddff3
tree3e14762c22dbb56bfde69941aaf77cbb53f0aa7f
parent59db76b108413e21fb23f15ec240ca44f2e5ee2f
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.

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