summaryrefslogtreecommitdiffstats
path: root/video/image_writer.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-02-08 21:09:18 +0100
committerwm4 <wm4@nowhere>2013-02-09 00:21:17 +0100
commit88d843f909f00ffd9c25016a9af58546fabbfd2c (patch)
tree835450867fbd262fac8af7831df1c7732b86ffe2 /video/image_writer.c
parent267a889cc2c5ca688a2b8fc93cf8e5349a3c8a44 (diff)
downloadmpv-88d843f909f00ffd9c25016a9af58546fabbfd2c.tar.bz2
mpv-88d843f909f00ffd9c25016a9af58546fabbfd2c.tar.xz
cleanup: replace OPT_FLAG_ON and OPT_MAKE_FLAGS with OPT_FLAG
OPT_MAKE_FLAGS() used to emit two options (one with "no" prefixed), but that has been long removed by special casing flag options in the option parser. OPT_FLAG_ON() used to imply that there's no "no-" prefixed option, but this hasn't been the case for a while either. (Conceptually, it has been replaced by OPT_FLAG_STORE().) Remove OPT_FLAG_OFF, which was unused.
Diffstat (limited to 'video/image_writer.c')
-rw-r--r--video/image_writer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/video/image_writer.c b/video/image_writer.c
index 3a25e91b07..98649c5c34 100644
--- a/video/image_writer.c
+++ b/video/image_writer.c
@@ -63,8 +63,8 @@ const struct m_sub_options image_writer_conf = {
OPT_INTRANGE("jpeg-optimize", jpeg_optimize, 0, 0, 100),
OPT_INTRANGE("jpeg-smooth", jpeg_smooth, 0, 0, 100),
OPT_INTRANGE("jpeg-dpi", jpeg_dpi, M_OPT_MIN, 1, 99999),
- OPT_MAKE_FLAGS("jpeg-progressive", jpeg_progressive, 0),
- OPT_MAKE_FLAGS("jpeg-baseline", jpeg_baseline, 0),
+ OPT_FLAG("jpeg-progressive", jpeg_progressive, 0),
+ OPT_FLAG("jpeg-baseline", jpeg_baseline, 0),
OPT_INTRANGE("png-compression", png_compression, 0, 0, 9),
OPT_STRING("format", format, 0),
{0},