]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/vividas.c
avformat/mxfdec: guess wrapping of tracks by other tracks with the same body sid
[ffmpeg] / libavformat / vividas.c
index 00a1a0f6efad9203d524821f7666eba2fcd7ac6d..c99cbd1f6ebaa172bf113784d5cde7d32d0a0bcc 100644 (file)
@@ -70,7 +70,7 @@ typedef struct VividasDemuxContext {
     VIV_AudioSubpacket audio_subpackets[MAX_AUDIO_SUBPACKETS];
 } VividasDemuxContext;
 
-static int viv_probe(AVProbeData *p)
+static int viv_probe(const AVProbeData *p)
 {
     if (memcmp(p->buf, "vividas03", 9))
         return 0;
@@ -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++;