From 336482b07b68bcbafc2d546cdf34d99c4fa4c0e6 Mon Sep 17 00:00:00 2001 From: Spoike Date: Tue, 21 Jun 2005 14:39:47 +0000 Subject: [PATCH] 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 --- engine/client/m_mp3.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/client/m_mp3.c b/engine/client/m_mp3.c index 29e2faf5f..9f9664858 100644 --- a/engine/client/m_mp3.c +++ b/engine/client/m_mp3.c @@ -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); }