summaryrefslogtreecommitdiffstats
path: root/video/filter/vf_expand.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-10-10 15:51:16 +0200
committerwm4 <wm4@nowhere>2017-10-10 15:51:16 +0200
commit14541ae2583f2ce1c8b8ebc2dd6cc49235207fc6 (patch)
tree14f622db59a3fd0265fd4e6541cedb6781879dde /video/filter/vf_expand.c
parent7c66c2bb75bb9f252dc976ab1805fecc610438e7 (diff)
downloadmpv-14541ae2583f2ce1c8b8ebc2dd6cc49235207fc6.tar.bz2
mpv-14541ae2583f2ce1c8b8ebc2dd6cc49235207fc6.tar.xz
Add checks for HAVE_GPL to various GPL-only source files
This should actually cover all of them, if you take into account that some unchanged GPL source files include header files with such checks. Also this was done already for the libaf derived code. This is only for "safety" and to avoid misunderstandings.
Diffstat (limited to 'video/filter/vf_expand.c')
-rw-r--r--video/filter/vf_expand.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/video/filter/vf_expand.c b/video/filter/vf_expand.c
index 216c47a6ac..398d90ecba 100644
--- a/video/filter/vf_expand.c
+++ b/video/filter/vf_expand.c
@@ -32,6 +32,11 @@
#include "options/m_option.h"
+#include "config.h"
+#if !HAVE_GPL
+#error GPL only
+#endif
+
static struct vf_priv_s {
// These four values are a backup of the values parsed from the command line.
// This is necessary so that we do not get a mess upon filter reinit due to