slightly lame robustification for:

CID-507

Checker: REVERSE_INULL
Function: LLVorbisDecodeState::initDecode()
File: /indra/llaudio/llaudiodecodemgr.cpp
meow-7.2.2
Tofu Linden 2010-09-09 12:38:03 +01:00
parent 31c6ad3d60
commit f7d51863f9
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ BOOL LLVorbisDecodeState::initDecode()
S32 sample_count = ov_pcm_total(&mVF, -1);
size_t size_guess = (size_t)sample_count;
vorbis_info* vi = ov_info(&mVF, -1);
size_guess *= vi->channels;
size_guess *= (vi? vi->channels : 1);
size_guess *= 2;
size_guess += 2048;