diff options
Diffstat (limited to 'mpvcore/m_option.c')
-rw-r--r-- | mpvcore/m_option.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mpvcore/m_option.c b/mpvcore/m_option.c index b51aa64bd5..f538816ea7 100644 --- a/mpvcore/m_option.c +++ b/mpvcore/m_option.c @@ -1601,7 +1601,7 @@ static int parse_afmt(const m_option_t *opt, struct bstr name, } int fmt = af_str2fmt_short(param); - if (fmt == -1) { + if (!fmt) { mp_msg(MSGT_CFGPARSER, MSGL_ERR, "Option %.*s: unknown format name: '%.*s'\n", BSTR_P(name), BSTR_P(param)); |