From 88d843f909f00ffd9c25016a9af58546fabbfd2c Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 8 Feb 2013 21:09:18 +0100 Subject: 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. --- video/image_writer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'video/image_writer.c') 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}, -- cgit v1.2.3