From 406fef4b887d7cfa7abd99b18a24fc9384728578 Mon Sep 17 00:00:00 2001 From: mittorn Date: Thu, 28 Apr 2016 18:29:25 +0600 Subject: [PATCH] mingw avi support --- engine/common/avikit.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/engine/common/avikit.c b/engine/common/avikit.c index e7e1d544b..3036ac716 100644 --- a/engine/common/avikit.c +++ b/engine/common/avikit.c @@ -16,10 +16,14 @@ GNU General Public License for more details. #include "common.h" #include "client.h" #include "gl_local.h" -#if defined(_WIN32) && !defined(__MINGW32__) +#if defined(_WIN32) #define USE_VFW #endif #ifdef USE_VFW +#ifdef __MINGW32__ +#include +#include +#endif #include // video for windows // msvfw32.dll exports @@ -133,6 +137,13 @@ typedef struct movie_state_s static qboolean avi_initialized = false; static movie_state_t avi[2]; +#ifndef ACM_STREAMSIZEF_SOURCE +#define ACM_STREAMSIZEF_SOURCE 0 + +#define ACM_STREAMCONVERTF_BLOCKALIGN 0x00000004 +#define ACM_STREAMCONVERTF_START 0x00000010 +#define ACM_STREAMCONVERTF_END 0x00000020 +#endif #endif // Converts a compressed audio stream into uncompressed PCM. qboolean AVI_ACMConvertAudio( movie_state_t *Avi )