mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-26 13:50:53 +00:00
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,6 +1603,7 @@ void Media_RecordFilm_f (void)
|
|||
recordavi_videotime = realtime;
|
||||
recordavi_audiotime = realtime;
|
||||
|
||||
if (recordavi_wave_format.nSamplesPerSec)
|
||||
captureaudiomem = BZ_Malloc(recordavi_wave_format.nSamplesPerSec*2);
|
||||
|
||||
capturevideomem = BZ_Malloc(glwidth*glheight*3);
|
||||
|
|
Loading…
Reference in a new issue