img_format: minor simplification

This commit is contained in:
wm4
2017-06-18 13:58:42 +02:00
parent c680cfd18a
commit 32833fa3d1
3 changed files with 3 additions and 5 deletions

View File

@@ -2069,7 +2069,7 @@ static int parse_imgfmt(struct mp_log *log, const m_option_t *opt,
return M_OPT_EXIT;
}
unsigned int fmt = mp_imgfmt_from_name(param, true);
unsigned int fmt = mp_imgfmt_from_name(param);
if (!fmt && !(accept_no && bstr_equals0(param, "no"))) {
mp_err(log, "Option %.*s: unknown format name: '%.*s'\n",
BSTR_P(name), BSTR_P(param));