Commit 14c2f7f6 authored by Paul B Mahol's avatar Paul B Mahol

avformat/vividas: fix undefined behaviour

parent 297e65c6
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment