summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
Diffstat (limited to 'video')
-rw-r--r--video/decode/vd_lavc.c2
-rw-r--r--video/image_writer.c1
-rw-r--r--video/out/vo_image.c1
-rw-r--r--video/out/vo_sdl.c1
-rw-r--r--video/out/vo_vdpau.c1
5 files changed, 2 insertions, 4 deletions
diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c
index 4959324509..4922f57387 100644
--- a/video/decode/vd_lavc.c
+++ b/video/decode/vd_lavc.c
@@ -71,6 +71,8 @@ static enum PixelFormat get_format_hwdec(struct AVCodecContext *avctx,
static void uninit(struct sh_video *sh);
+#define OPT_BASE_STRUCT struct MPOpts
+
const m_option_t lavc_decode_opts_conf[] = {
OPT_INTRANGE("bug", lavc_param.workaround_bugs, 0, -1, 999999),
OPT_FLAG("gray", lavc_param.gray, 0),
diff --git a/video/image_writer.c b/video/image_writer.c
index 98649c5c34..0ec949b36a 100644
--- a/video/image_writer.c
+++ b/video/image_writer.c
@@ -54,7 +54,6 @@ const struct image_writer_opts image_writer_opts_defaults = {
.jpeg_baseline = 1,
};
-#undef OPT_BASE_STRUCT
#define OPT_BASE_STRUCT struct image_writer_opts
const struct m_sub_options image_writer_conf = {
diff --git a/video/out/vo_image.c b/video/out/vo_image.c
index d39df5851c..32ab26dafe 100644
--- a/video/out/vo_image.c
+++ b/video/out/vo_image.c
@@ -180,7 +180,6 @@ static int control(struct vo *vo, uint32_t request, void *data)
return VO_NOTIMPL;
}
-#undef OPT_BASE_STRUCT
#define OPT_BASE_STRUCT struct priv
const struct vo_driver video_out_image =
diff --git a/video/out/vo_sdl.c b/video/out/vo_sdl.c
index 45486afbfd..5f1e4317ed 100644
--- a/video/out/vo_sdl.c
+++ b/video/out/vo_sdl.c
@@ -1014,7 +1014,6 @@ static int control(struct vo *vo, uint32_t request, void *data)
return VO_NOTIMPL;
}
-#undef OPT_BASE_STRUCT
#define OPT_BASE_STRUCT struct priv
const struct vo_driver video_out_sdl = {
diff --git a/video/out/vo_vdpau.c b/video/out/vo_vdpau.c
index e46e4639b6..6b35176bfb 100644
--- a/video/out/vo_vdpau.c
+++ b/video/out/vo_vdpau.c
@@ -1618,7 +1618,6 @@ static int control(struct vo *vo, uint32_t request, void *data)
return VO_NOTIMPL;
}
-#undef OPT_BASE_STRUCT
#define OPT_BASE_STRUCT struct vdpctx
const struct vo_driver video_out_vdpau = {