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:
parent
e73095a23a
commit
336482b07b
1 changed files with 2 additions and 1 deletions
|
@ -1603,7 +1603,8 @@ void Media_RecordFilm_f (void)
|
||||||
recordavi_videotime = realtime;
|
recordavi_videotime = realtime;
|
||||||
recordavi_audiotime = 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);
|
capturevideomem = BZ_Malloc(glwidth*glheight*3);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue