mirror of
https://github.com/mpv-player/mpv
synced 2025-03-02 04:11:03 +00:00
Initialize local variable, avoids a possible crash due to using an
uninitialized variable as array index for mono files. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29339 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
29369f0c33
commit
31f9de2546
@ -163,8 +163,8 @@ static void decode_nibbles(unsigned short *output,
|
||||
static int qt_ima_adpcm_decode_block(unsigned short *output,
|
||||
unsigned char *input, int channels, int block_size)
|
||||
{
|
||||
int initial_predictor[2];
|
||||
int initial_index[2];
|
||||
int initial_predictor[2] = {0};
|
||||
int initial_index[2] = {0};
|
||||
int i;
|
||||
|
||||
if (channels != 1) channels = 2;
|
||||
|
Loading…
Reference in New Issue
Block a user