aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-08-26 12:05:20 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-08-26 12:22:55 +0200
commitd5ee74e57d44ccbf644ea76d635628ed4e5fabfb (patch)
tree66355b6853c81a13bcce9573e94e7821eaef8c01
parentc2c56d54ee900867690e71e5154593c907229061 (diff)
parentab56fabe6294524e99815451ad01e4ff50c6d734 (diff)
downloadffmpeg-d5ee74e57d44ccbf644ea76d635628ed4e5fabfb.tar.gz
Merge commit 'ab56fabe6294524e99815451ad01e4ff50c6d734'
* commit 'ab56fabe6294524e99815451ad01e4ff50c6d734': vfwcap: Add fallback define for HWND_MESSAGE The merged commit reverts the HWND_MESSAGE removial, and adds a #ifndef around commit 8bc52dbd9dffb1b2fa4a6aeed2d298d036b619b2 vfwcap: Drop fallback VfW defines The defines were added long ago when MinGW still lacked them. Merged-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavdevice/vfwcap.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavdevice/vfwcap.c b/libavdevice/vfwcap.c
index 60a5e8ef13..00fb48b516 100644
--- a/libavdevice/vfwcap.c
+++ b/libavdevice/vfwcap.c
@@ -27,6 +27,11 @@
#include <vfw.h>
#include "avdevice.h"
+/* Some obsolete versions of MinGW32 before 4.0.0 lack this. */
+#ifndef HWND_MESSAGE
+#define HWND_MESSAGE ((HWND) -3)
+#endif
+
struct vfw_ctx {
const AVClass *class;
HWND hwnd;