aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2018-12-22 10:39:03 +0100
committerPaul B Mahol <onemda@gmail.com>2018-12-22 11:14:21 +0100
commit14c2f7f65260cbd1475075edf9acf2b82c8dcb36 (patch)
treebaf38b159392cd3342739d80035584b2df8238a9
parent297e65c676e3e59d0cbabf9bf6f87b90f8292399 (diff)
downloadffmpeg-14c2f7f65260cbd1475075edf9acf2b82c8dcb36.tar.gz
avformat/vividas: fix undefined behaviour
-rw-r--r--libavformat/vividas.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/vividas.c b/libavformat/vividas.c
index 31f8c47ca4..dc446929c3 100644
--- a/libavformat/vividas.c
+++ b/libavformat/vividas.c
@@ -121,11 +121,11 @@ static unsigned recover_key(unsigned char sample[4], unsigned expected_size)
((sample[3]^plaintext[3])<<24);
}
-static void xor_block(void *p1, void *p2, unsigned size, int key, int *key_ptr)
+static void xor_block(void *p1, void *p2, unsigned size, int key, unsigned *key_ptr)
{
- int *d1 = p1;
- int *d2 = p2;
- int k = *key_ptr;
+ unsigned *d1 = p1;
+ unsigned *d2 = p2;
+ unsigned k = *key_ptr;
size >>= 2;