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)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 19 Nov 2015 02:51:40 +0000 (03:51 +0100)
commit949f5dbcfbb8ce317b8104655dbc73efd383f6e0
tree93702706ff56f9d4677c99e27974c5d75658c699
parent89612acc81d12fd41332632840aa6d5bce6f0d12
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>
(cherry picked from commit e7728319b92dbb4fb949155e33de7ff5358ddff3)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/rtmpcrypt.c