ffmpeg/libavformat
Martin Storsjö 795908eff4 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>
2015-11-26 16:58:33 +01:00
..
4xm.c
a64.c
aacdec.c
ac3dec.c
act.c Merge commit 'd80811c94e068085aab797f9ba35790529126f85' 2015-11-26 01:37:56 +01:00
adp.c
adtsenc.c
adxdec.c avformat/adxdec: check avctx->channels for invalid values 2015-03-21 01:52:51 +01:00
aea.c
afc.c
aiff.h
aiffdec.c
aiffenc.c
allformats.c avformat/apngdec: add APNG demuxer. 2014-11-21 17:13:56 +01:00
amr.c
anm.c
apc.c
ape.c
apetag.c
apetag.h
apngdec.c avformat/apngdec: Use 64bit for ret to avoid overflow 2015-03-21 01:52:50 +01:00
aqtitledec.c
asf.c
asf.h
asfcrypt.c
asfcrypt.h
asfdec.c Merge commit 'd80811c94e068085aab797f9ba35790529126f85' 2015-11-26 01:37:56 +01:00
asfenc.c asfenc: fix leaking asf->index_ptr on error 2015-03-21 01:52:52 +01:00
assdec.c
assenc.c
ast.c
ast.h
astdec.c
astenc.c
au.c
audiointerleave.c
audiointerleave.h
avc.c
avc.h
avformat.h doc: fix spelling errors 2014-12-01 00:31:06 +01:00
avformatres.rc
avi.h
avidec.c Merge commit 'd80811c94e068085aab797f9ba35790529126f85' 2015-11-26 01:37:56 +01:00
avienc.c avformat/avienc: write last frame duration 2014-11-19 20:23:04 +01:00
avio_internal.h
avio.c
avio.h lavf/avio: clarify the buffer parameter of avio_alloc_context 2014-11-25 18:19:00 +01:00
aviobuf.c avio: fix potential crashes when combining ffio_ensure_seekback + crc 2015-07-28 02:42:14 +02:00
avisynth.c
avlanguage.c
avlanguage.h
avr.c
avs.c
bethsoftvid.c
bfi.c
bink.c bink: check vst->index_entries before using it 2015-05-21 20:43:36 +02:00
bintext.c
bit.c avformat/bit: only accept the g729 codec and 1 channel 2015-03-21 01:52:51 +01:00
bluray.c
bmv.c
boadec.c
brstm.c
c93.c
cache.c
caf.c
caf.h
cafdec.c
cafenc.c
cavsvideodec.c
cdg.c
cdxl.c avformat/cdxl: Fix integer overflow of image_size 2015-01-09 17:19:09 +01:00
cinedec.c cinedec: report white balance gain coefficients using metadata 2014-11-13 15:31:19 +01:00
concat.c
concatdec.c lavf/concatdec: add timestamp log 2014-11-19 11:17:43 +01:00
crcenc.c
crypto.c avformat/crypto: fix key vs iv typo 2014-12-09 20:08:03 +01:00
cutils.c
dashenc.c Merge commit 'fcae9f212a6001d966c52dc22cd4b22e9851b428' 2014-11-28 12:52:13 +01:00
data_uri.c
dauddec.c
daudenc.c
dfa.c
diracdec.c
dnxhddec.c
dsfdec.c
dsicin.c
dtsdec.c avformat/dtsdec: dts_probe: check reserved bit, check lfe, check sr_code similarity 2014-11-20 00:21:09 +01:00
dtshddec.c
dump.c avformat/dump: Fix integer overflow in aspect ratio calculation 2015-11-26 16:58:32 +01:00
dv.c
dv.h
dvenc.c
dxa.c Merge commit 'd80811c94e068085aab797f9ba35790529126f85' 2015-11-26 01:37:56 +01:00
eacdata.c
electronicarts.c
epafdec.c
ffm.h
ffmdec.c avformat/ffmdec: Check ffio_set_buf_size() return value 2015-07-28 02:33:56 +02:00
ffmenc.c lavf/ffmenc: store recommended encoder configuration 2014-11-27 23:19:41 +01:00
ffmeta.h
ffmetadec.c
ffmetaenc.c
file_open.c
file.c
filmstripdec.c
filmstripenc.c
flac_picture.c
flac_picture.h
flacdec.c
flacenc_header.c
flacenc.c avformat/flacenc: Check length in flac_write_block_comment() 2015-05-21 20:43:38 +02:00
flacenc.h
flic.c
flv.h
flvdec.c avformat/flvdec: Increase string array size 2015-01-09 17:19:10 +01:00
flvenc.c avformat/flvenc: check that the codec_tag fits in the available bits 2015-03-21 01:52:51 +01:00
format.c
framecrcenc.c
framehash.c
frmdec.c
ftp.c
g722.c
g723_1.c
g729dec.c
gif.c
gifdec.c
golomb_tab.c
gopher.c
gsmdec.c
gxf.c avformat/gxf: Use 64bit for res to avoid overflow 2015-03-21 01:52:50 +01:00
gxf.h
gxfenc.c
h261dec.c
h263dec.c
h264dec.c
hdsenc.c avformat/hdsenc: Use av_freep() avoid leaving stale pointers in memory 2014-12-22 03:17:55 +01:00
hevc.c avformat/hevc: Check num_long_term_ref_pics_sps to avoid potentially long loops 2015-11-26 16:58:32 +01:00
hevc.h
hevcdec.c
hls.c
hlsenc.c avformat/hlsenc: Free context after hls_append_segment 2014-11-16 04:32:54 +01:00
hlsproto.c
hnm.c
http.c avformat/http: simplify chained_options copying 2014-11-15 14:30:32 +01:00
http.h
httpauth.c avformat/httpauth: Add space after commas in HTTP/RTSP auth header 2015-11-26 16:58:32 +01:00
httpauth.h
icecast.c Merge commit '3a6bb9735053c453f806ceab1d91124648d90aca' 2014-11-15 11:30:42 +01:00
icodec.c
icoenc.c
id3v1.c
id3v1.h
id3v2.c id3v2: catch avio_read errors in check_tag 2015-05-21 20:43:38 +02:00
id3v2.h
id3v2enc.c
idcin.c avformat/idcin: Use 64bit for ret to avoid overflow 2015-03-21 01:52:50 +01:00
idroqdec.c
idroqenc.c
iff.c
ilbc.c
img2_alias_pix.c
img2_brender_pix.c
img2.c
img2.h
img2dec.c lavf/img2dec: Fix memory leak 2015-10-09 21:56:15 +02:00
img2enc.c
ingenientdec.c
internal.h Merge commit '675ac56b7ee0f204963fde55295197c5df80aa91' 2014-11-27 11:52:33 +01:00
ipmovie.c
ircam.c
ircam.h
ircamdec.c
ircamenc.c
isom.c
isom.h avformat/mov: check atom nesting depth 2014-12-22 03:17:55 +01:00
iss.c
iv8.c
ivfdec.c
ivfenc.c
jacosubdec.c avformat/jacosubdec: Cleanup when avpriv_bprint_to_extradata() fails 2014-11-25 15:20:54 +01:00
jacosubenc.c
jvdec.c jvdec: avoid unsigned overflow in comparison 2015-11-26 01:37:56 +01:00
latmenc.c
libavformat.v
libgme.c
libmodplug.c
libnut.c
libquvi.c
librtmp.c librtmp: append the correct field to the string 2014-11-18 00:38:26 +01:00
libsmbclient.c
libssh.c
lmlm4.c
loasdec.c
log2_tab.c
lrc.c
lrc.h
lrcdec.c
lrcenc.c
lvfdec.c
lxfdec.c Rename sync() functions in libavformat. 2014-11-25 23:49:58 +01:00
m4vdec.c
Makefile libavformat: Build hevc.o when building the RTP muxer 2015-01-09 00:50:31 -03:00
matroska.c
matroska.h
matroskadec.c avformat/matroskadec: Check subtitle stream before dereferencing 2015-11-26 16:58:33 +01:00
matroskaenc.c avformat/matroskaenc: Check ff_vorbiscomment_length in put_flac_codecpriv() 2015-05-21 20:43:38 +02:00
md5enc.c
md5proto.c
metadata.c
metadata.h
mgsts.c
microdvddec.c
microdvdenc.c
mkvtimestamp_v2.c
mlvdec.c Merge commit 'd80811c94e068085aab797f9ba35790529126f85' 2015-11-26 01:37:56 +01:00
mm.c
mmf.c
mms.c
mms.h
mmsh.c
mmst.c
mov_chan.c mov: abort on EOF in ff_mov_read_chan 2015-07-28 02:33:56 +02:00
mov_chan.h
mov.c avformat/mov: Fix integer overflow in FFABS 2015-11-26 16:58:32 +01:00
movenc.c avformat/movenc: workaround bug in "PathScale EKOPath(tm) Compiler Suite Version 4.0.12.1" 2015-01-10 05:01:20 +01:00
movenc.h Merge commit 'ee37620b6ae4783cda637408422044b2d14a688c' 2014-11-26 11:27:17 +01:00
movenchint.c
mp3dec.c avformat/mp3dec: Check for avcodec_alloc_context3() failure 2015-05-21 20:43:39 +02:00
mp3enc.c
mpc8.c avformat/mpc8: Use uint64_t in *_get_v() to avoid undefined behavior 2015-02-12 17:10:36 +01:00
mpc.c
mpeg.c avformat/mpeg: do not count PES packets inside PES packets during probing 2015-02-12 17:10:35 +01:00
mpeg.h
mpegenc.c avformat/mpegenc: assert that premux_packet is non null 2014-11-24 16:54:06 +01:00
mpegts.c avformat/mpegts: improve first valid PMT heuristic 2014-11-08 21:35:20 +01:00
mpegts.h
mpegtsenc.c Merge commit '8f8caca2242e1fe05f37493cfabcd3f4de198550' 2014-12-02 22:42:35 +01:00
mpegvideodec.c
mpjpeg.c
mpl2dec.c
mpsubdec.c
msnwc_tcp.c
mtv.c
mux.c avformat/mux: Update sidedata in ff_write_chained() 2015-11-26 16:58:31 +01:00
mvdec.c avformat/mvdec: Use 64bit for ret to avoid overflow 2015-03-21 01:52:51 +01:00
mvi.c
mxf.c libavformat/mxfdec.c: initial support for EssenceGroups 2014-11-30 23:14:06 +01:00
mxf.h libavformat/mxfdec.c: initial support for EssenceGroups 2014-11-30 23:14:06 +01:00
mxfdec.c mxfdec: check edit_rate also for physical_track 2015-11-26 01:37:56 +01:00
mxfenc.c avformat/mxfenc: Accept MXF D-10 with 49.999840 Mbit/sec 2015-07-28 02:33:56 +02:00
mxg.c
ncdec.c
network.c
network.h
nistspheredec.c
noproxy-test.c
nsvdec.c
nullenc.c
nut.c avformat/nut: support WavPack 2015-07-30 18:53:05 +02:00
nut.h nutdec: fix infinite resync loops 2015-05-23 00:55:57 +02:00
nutdec.c nutdec: check maxpos in read_sm_data before returning success 2015-11-26 01:37:56 +01:00
nutenc.c
nuv.c
oggdec.c
oggdec.h
oggenc.c avformat/oggenc: Check segments_count for headers too 2015-10-09 21:58:00 +02:00
oggparsecelt.c
oggparsedirac.c oggparsedirac: check return value of init_get_bits 2015-07-28 02:42:15 +02:00
oggparseflac.c
oggparseogm.c
oggparseopus.c
oggparseskeleton.c
oggparsespeex.c
oggparsetheora.c
oggparsevorbis.c
oggparsevp8.c
oma.c
oma.h
omadec.c avformat/omadec: Use 64bit for ret to avoid overflow 2015-03-21 01:52:51 +01:00
omaenc.c
options_table.h
options.c Merge commit '9257692ac15eff7b07540c1f61cebde0d8823fbd' 2014-11-18 02:46:07 +01:00
os_support.c avformat/os_support: Use av_freep() to avoid leaving stale pointers in memory 2015-02-12 17:11:54 +01:00
os_support.h Merge commit '79fd186a5035cf16fc0ab288d8f59da8b1ba2c0e' 2014-11-27 11:35:54 +01:00
paf.c
pcm.c
pcm.h
pcmdec.c
pcmenc.c
pjsdec.c
pmpdec.c
psxstr.c
pva.c
pvfdec.c
qcp.c lavf/qcp: Print unknown GUID on error. 2014-12-02 11:40:01 +01:00
qtpalette.h
r3d.c
rawdec.c rawdec: fix mjpeg probing buffer size check 2015-07-30 19:27:45 +02:00
rawdec.h
rawenc.c
rawenc.h
rawvideodec.c
rdt.c
rdt.h
realtextdec.c
redspark.c
replaygain.c
replaygain.h
riff.c lavf: Do not list mov-only codecs in riff.c. 2015-03-13 09:15:18 +01:00
riff.h Merge commit 'd80811c94e068085aab797f9ba35790529126f85' 2015-11-26 01:37:56 +01:00
riffdec.c riffdec: prevent negative bit rate 2015-11-26 01:37:56 +01:00
riffenc.c
rl2.c
rm.c
rm.h
rmdec.c avformat/rmdec: Check for overflow in ff_rm_read_mdpr_codecdata() 2015-02-12 17:10:35 +01:00
rmenc.c avformat/rm: limit packet size 2015-03-21 01:52:52 +01:00
rmsipr.c
rmsipr.h
rpl.c
rsd.c avformat/rsd: make tag_buf string larger 2014-12-19 18:01:31 -03:00
rso.c
rso.h
rsodec.c
rsoenc.c
rtmp.h
rtmpcrypt.c rtmpcrypt: Do the xtea decryption in little endian mode 2015-11-26 16:58:33 +01:00
rtmpcrypt.h
rtmpdh.c
rtmpdh.h
rtmphttp.c
rtmppkt.c Merge commit '44127b157e9f8acb837d4bb3a094f56b40da3ef5' 2014-11-28 12:14:26 +01:00
rtmppkt.h
rtmpproto.c avformat/rtmpproto: Use av_freep() to avoid leaving stale pointers in memory 2015-02-12 17:11:55 +01:00
rtp.c
rtp.h
rtpdec_amr.c
rtpdec_asf.c
rtpdec_formats.h
rtpdec_g726.c
rtpdec_h261.c
rtpdec_h263_rfc2190.c rtpdec_h263_rfc2190: Clear the stored bits if discarding buffered data 2015-02-12 17:10:35 +01:00
rtpdec_h263.c
rtpdec_h264.c
rtpdec_hevc.c
rtpdec_ilbc.c
rtpdec_jpeg.c
rtpdec_latm.c
rtpdec_mpeg4.c
rtpdec_mpeg12.c
rtpdec_mpegts.c
rtpdec_qcelp.c
rtpdec_qdm2.c
rtpdec_qt.c
rtpdec_svq3.c
rtpdec_vp8.c
rtpdec_xiph.c avformat/rtpdec_xiph: Check upper bound on len in xiph_handle_packet() 2015-05-21 20:43:38 +02:00
rtpdec.c
rtpdec.h
rtpenc_aac.c
rtpenc_amr.c
rtpenc_chain.c
rtpenc_chain.h
rtpenc_h261.c
rtpenc_h263_rfc2190.c
rtpenc_h263.c
rtpenc_h264.c
rtpenc_hevc.c
rtpenc_jpeg.c rtpenc_jpeg: handle case of picture dimensions not dividing by 8 2015-05-21 20:43:39 +02:00
rtpenc_latm.c
rtpenc_mpv.c
rtpenc_vp8.c
rtpenc_xiph.c
rtpenc.c Revert "avformat/rtpenc: check av_packet_get_side_data() return, fix null ptr dereference" 2015-07-28 02:33:56 +02:00
rtpenc.h
rtpproto.c avformat/rtpproto: Allow to specify DSCP class 2014-11-27 19:53:09 +01:00
rtpproto.h
rtsp.c rtsp: Make sure we don't write too many transport entries into a fixed-size array 2015-05-21 20:43:39 +02:00
rtsp.h
rtspcodes.h
rtspdec.c
rtspenc.c
samidec.c
sapdec.c
sapenc.c
sauce.c
sauce.h
sbgdec.c
sctp.c
sdp.c
sdr2.c
seek-test.c
seek.c
seek.h
segafilm.c
segment.c avformat/segment: Use av_freep() avoid leaving stale pointers in memory 2015-01-09 17:19:09 +01:00
sierravmd.c
siff.c
smacker.c avformat/smacker: Fix number suffix 2015-02-12 17:10:35 +01:00
smjpeg.c
smjpeg.h
smjpegdec.c
smjpegenc.c
smoothstreamingenc.c Merge commit '675ac56b7ee0f204963fde55295197c5df80aa91' 2014-11-27 11:52:33 +01:00
smush.c
sol.c Merge commit '30b8eb0f87b0eaefdc115ef38f8ad87dd3a6e50b' 2014-11-24 13:10:16 +01:00
sox.h
soxdec.c
soxenc.c
spdif.c
spdif.h
spdifdec.c
spdifenc.c
srtdec.c avformat/srtdec: make sure we probe a number 2015-10-09 21:55:47 +02:00
srtenc.c
srtp.c
srtp.h
srtpproto.c
stldec.c
subfile.c
subtitles.c avformat/subtitles: Use size_t for len 2015-05-21 20:43:38 +02:00
subtitles.h avformat/subtitles: Use size_t for len 2015-05-21 20:43:38 +02:00
subviewer1dec.c
subviewerdec.c
supdec.c
swf.c
swf.h
swfdec.c avformat/swfdec: Do not error out on pixel format changes 2015-07-08 12:44:44 +02:00
swfenc.c
takdec.c
tcp.c lavf/tcp: Clarify that the -timeout option takes microseconds. 2014-11-12 13:52:56 +01:00
tedcaptionsdec.c
tee.c
thp.c avformat/thp: Check av_get_packet() for failure not only for partial output 2015-02-12 17:10:36 +01:00
tiertexseq.c
tls.c
tmv.c
tta.c avformat/tta: fix crash with corrupted files 2015-02-12 17:10:36 +01:00
tty.c
txd.c
udp.c avformat/udp: Allow to specify DSCP class 2014-11-27 19:53:09 +01:00
uncodedframecrcenc.c
unix.c
url-test.c
url.c avformat/url: Use size_t for len from strlen() 2015-05-21 20:43:38 +02:00
url.h
urldecode.c
urldecode.h
utils.c avformat/utils: Do not init parser if probing is unfinished 2015-11-26 16:58:33 +01:00
vc1test.c
vc1testenc.c
version.h Merge commit 'e352b293712ff7cbde67eba3ce3f8510b037de09' 2014-12-02 22:13:20 +01:00
vivo.c
voc.c
voc.h
vocdec.c
vocenc.c
vorbiscomment.c avformat/vorbiscomment: Check entry length in ff_vorbiscomment_write() 2015-05-21 20:43:38 +02:00
vorbiscomment.h
vplayerdec.c
vqf.c avformat/vqf: Use 64bit for ret to avoid overflow 2015-03-21 01:52:51 +01:00
w64.c
w64.h
wavdec.c Merge commit 'd80811c94e068085aab797f9ba35790529126f85' 2015-11-26 01:37:56 +01:00
wavenc.c
wc3movie.c
webmdashenc.c lavf/webmdashenc: Representation IDs should be unique. 2014-11-12 00:21:37 +01:00
webpenc.c
webvttdec.c
webvttenc.c lavf/webvttenc: Require webvtt file to contain exactly one WebVTT stream. 2015-11-26 16:58:32 +01:00
westwood_aud.c
westwood_vqa.c
wtv_common.c
wtv.h
wtvdec.c Merge commit 'd80811c94e068085aab797f9ba35790529126f85' 2015-11-26 01:37:56 +01:00
wtvenc.c
wv.c
wv.h
wvdec.c
wvenc.c
xa.c
xmv.c avformat/xmv: Discard remainder of packet on error 2015-11-26 16:58:33 +01:00
xwma.c Merge commit 'd80811c94e068085aab797f9ba35790529126f85' 2015-11-26 01:37:56 +01:00
yop.c
yuv4mpeg.h
yuv4mpegdec.c
yuv4mpegenc.c