aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>2018-12-23 01:34:55 +0100
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2018-12-28 00:20:47 +0100
commit01db03f15848e524e8fd4e16b524aea855f63558 (patch)
tree5a87ebc54725863e8a843d1027db24095677d753
parent17aed996bc35a020416e10075f1e6cc61b6cf805 (diff)
downloadffmpeg-01db03f15848e524e8fd4e16b524aea855f63558.tar.gz
lavf/vividas: Support demuxing on big-endian hardware.
-rw-r--r--libavformat/vividas.c2
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++;