Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
@ -899,7 +899,7 @@ void MPC_decoder::SetStreamInfo ( const StreamInfo *si )
SampleRate = (int)si->simple.SampleFreq;
if ( SeekTable != NULL ) free ( SeekTable );
SeekTable = (unsigned short *)calloc ( sizeof(unsigned short), OverallFrames+64 );
SeekTable = (unsigned short *)calloc ( OverallFrames+64, sizeof(unsigned short) );
samples_to_skip = SynthDelay;
}
@ -166,8 +166,8 @@ int StreamInfo::ReadStreamInfo ( MPC_reader* fp)
if ( fp->read ( HeaderData, 8*4 ) != 8*4 )
return ERROR_CODE_FILE;
if (!fp->seek(simple.HeaderPosition+6*4,SEEK_SET)) return ERROR_CODE_FILE;
/* if ( fp->read ( HeaderData, 6*4 ) != 6*4 )
/*
if ( fp->read ( HeaderData, 6*4 ) != 6*4 )
HeaderData[6]=HeaderData[7]=0;
*/