OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ee1cb5
)
vfwcap: Add fallback define for HWND_MESSAGE
author
Diego Biurrun
<diego@biurrun.de>
Mon, 25 Aug 2014 15:26:15 +0000
(17:26 +0200)
committer
Diego Biurrun
<diego@biurrun.de>
Mon, 25 Aug 2014 23:41:22 +0000
(16:41 -0700)
Some obsolete versions of the MinGW32 runtime (<4.0.0) lack the definition.
libavdevice/vfwcap.c
patch
|
blob
|
history
diff --git
a/libavdevice/vfwcap.c
b/libavdevice/vfwcap.c
index
c067be3
..
b47de1b
100644
(file)
--- a/
libavdevice/vfwcap.c
+++ b/
libavdevice/vfwcap.c
@@
-27,6
+27,11
@@
#include <windows.h>
#include <vfw.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;