lavf/vividas: Support demuxing on big-endian hardware.

This commit is contained in:
Carl Eugen Hoyos 2018-12-23 01:34:55 +01:00
parent 17aed996bc
commit 01db03f158

View File

@ -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++;