[MPlayer-cvslog] r29339 - trunk/libmpcodecs/ad_imaadpcm.c
reimar
subversion at mplayerhq.hu
Mon Jun 1 12:43:42 CEST 2009
Author: reimar
Date: Mon Jun 1 12:43:41 2009
New Revision: 29339
Log:
Initialize local variable, avoids a possible crash due to using an
uninitialized variable as array index for mono files.
Modified:
trunk/libmpcodecs/ad_imaadpcm.c
Modified: trunk/libmpcodecs/ad_imaadpcm.c
==============================================================================
--- trunk/libmpcodecs/ad_imaadpcm.c Mon Jun 1 11:43:32 2009 (r29338)
+++ trunk/libmpcodecs/ad_imaadpcm.c Mon Jun 1 12:43:41 2009 (r29339)
@@ -163,8 +163,8 @@ static void decode_nibbles(unsigned shor
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;
More information about the MPlayer-cvslog
mailing list