diff options
| author | Tofu Linden <tofu.linden@lindenlab.com> | 2010-09-09 12:38:03 +0100 | 
|---|---|---|
| committer | Tofu Linden <tofu.linden@lindenlab.com> | 2010-09-09 12:38:03 +0100 | 
| commit | f7d51863f9b47e75ee85fadeaa734ff34f911d19 (patch) | |
| tree | 5ed39d5574ceb8c67bda477e04c46d14ecb49a5f /indra | |
| parent | 31c6ad3d609aaf28a9e2d3ca6536e0fd215d823a (diff) | |
slightly lame robustification for:
CID-507
Checker: REVERSE_INULL
Function: LLVorbisDecodeState::initDecode()
File: /indra/llaudio/llaudiodecodemgr.cpp
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/llaudio/llaudiodecodemgr.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/indra/llaudio/llaudiodecodemgr.cpp b/indra/llaudio/llaudiodecodemgr.cpp index c82f194ff4..01dfd03c18 100644 --- a/indra/llaudio/llaudiodecodemgr.cpp +++ b/indra/llaudio/llaudiodecodemgr.cpp @@ -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; | 
