From 05ee0db1b27d3c54c7513ae1756b91938ff2f9a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Thu, 16 Feb 2012 17:15:59 -0500 Subject: [PATCH] dshow_filter: fix compilation with mingw-w64 Closes ticket #999 NO_DSHOW_STRSAFE asks dshow.h header to not use secure string function replacements. Using secure replacements would break mingw.org compatibility as they don't declare/define those functions. Signed-off-by: Michael Niedermayer --- libavdevice/dshow_filter.c | 1 + libavdevice/dshow_pin.c | 1 + 2 files changed, 2 insertions(+) diff --git a/libavdevice/dshow_filter.c b/libavdevice/dshow_filter.c index 64e8306536..526e8b6e68 100644 --- a/libavdevice/dshow_filter.c +++ b/libavdevice/dshow_filter.c @@ -19,6 +19,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#define NO_DSHOW_STRSAFE #include "dshow.h" DECLARE_QUERYINTERFACE(libAVFilter, diff --git a/libavdevice/dshow_pin.c b/libavdevice/dshow_pin.c index 5e14108092..d4463f6c90 100644 --- a/libavdevice/dshow_pin.c +++ b/libavdevice/dshow_pin.c @@ -19,6 +19,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#define NO_DSHOW_STRSAFE #include "dshow.h" #include