Bugfix: [ 1222450 ] capturing and Z_Malloc: size 0 problem

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1109 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-06-21 14:39:47 +00:00
parent e73095a23a
commit 336482b07b

View file

@ -1603,7 +1603,8 @@ void Media_RecordFilm_f (void)
recordavi_videotime = realtime;
recordavi_audiotime = realtime;
captureaudiomem = BZ_Malloc(recordavi_wave_format.nSamplesPerSec*2);
if (recordavi_wave_format.nSamplesPerSec)
captureaudiomem = BZ_Malloc(recordavi_wave_format.nSamplesPerSec*2);
capturevideomem = BZ_Malloc(glwidth*glheight*3);
}