mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-09-19 21:06:42 +00:00
avformat/vividas: fix undefined behaviour
This commit is contained in:
parent
297e65c676
commit
14c2f7f652
@ -121,11 +121,11 @@ static unsigned recover_key(unsigned char sample[4], unsigned expected_size)
|
|||||||
((sample[3]^plaintext[3])<<24);
|
((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;
|
unsigned *d1 = p1;
|
||||||
int *d2 = p2;
|
unsigned *d2 = p2;
|
||||||
int k = *key_ptr;
|
unsigned k = *key_ptr;
|
||||||
|
|
||||||
size >>= 2;
|
size >>= 2;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user