[FFmpeg-cvslog] lavf/vividas: Support demuxing on big-endian hardware.

Carl Eugen Hoyos git at videolan.org
Fri Dec 28 01:22:53 EET 2018


ffmpeg | branch: master | Carl Eugen Hoyos <ceffmpeg at gmail.com> | Sun Dec 23 01:34:55 2018 +0100| [01db03f15848e524e8fd4e16b524aea855f63558] | committer: Carl Eugen Hoyos

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

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=01db03f15848e524e8fd4e16b524aea855f63558
---

 libavformat/vividas.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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



More information about the ffmpeg-cvslog mailing list