From 823e5205eac66e5bff0953605b5b6c9ddde54739 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 9 Apr 2020 11:20:45 +0200 Subject: options: make imgfmt options always accept "no" This was optional, with the intention that normally such options require a valid format. But there is no reason for this (at least not anymore), and it's actually more logical to accept "no" in all situations this option type is used. This also gets rid of the weird min field special use. --- video/decode/vd_lavc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video') diff --git a/video/decode/vd_lavc.c b/video/decode/vd_lavc.c index 9a647bf50c..e0732397a8 100644 --- a/video/decode/vd_lavc.c +++ b/video/decode/vd_lavc.c @@ -120,7 +120,7 @@ const struct m_sub_options vd_lavc_conf = { {"hwdec", OPT_STRING_VALIDATE(hwdec_api, hwdec_validate_opt), .flags = M_OPT_OPTIONAL_PARAM | UPDATE_HWDEC}, {"hwdec-codecs", OPT_STRING(hwdec_codecs)}, - {"hwdec-image-format", OPT_IMAGEFORMAT(hwdec_image_format), .min = -1}, + {"hwdec-image-format", OPT_IMAGEFORMAT(hwdec_image_format)}, {"hwdec-extra-frames", OPT_INT(hwdec_extra_frames), M_RANGE(0, 256)}, {0} }, -- cgit v1.2.3