diff options
author | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2018-12-23 01:34:55 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2018-12-28 00:20:47 +0100 |
commit | 01db03f15848e524e8fd4e16b524aea855f63558 (patch) | |
tree | 5a87ebc54725863e8a843d1027db24095677d753 /libavformat | |
parent | 17aed996bc35a020416e10075f1e6cc61b6cf805 (diff) | |
download | ffmpeg-01db03f15848e524e8fd4e16b524aea855f63558.tar.gz |
lavf/vividas: Support demuxing on big-endian hardware.
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/vividas.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/vividas.c b/libavformat/vividas.c index 00a1a0f6ef..598b8bb10b 100644 --- a/libavformat/vividas.c +++ b/libavformat/vividas.c @@ -130,7 +130,7 @@ static void xor_block(void *p1, void *p2, unsigned size, int key, unsigned *key_ size >>= 2; while (size > 0) { - *d2 = *d1 ^ k; + *d2 = *d1 ^ (HAVE_BIGENDIAN ? av_bswap32(k) : k); k += key; d1++; d2++; |