1
0
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:
reimar 2009-06-01 10:43:41 +00:00
parent 29369f0c33
commit 31f9de2546

View File

@ -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;