summaryrefslogtreecommitdiffstats
path: root/mpvcore
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-12-07 19:39:45 +0100
committerwm4 <wm4@nowhere>2013-12-07 19:39:45 +0100
commit62925a5c15a76568c155259bafa1361ec139c66b (patch)
tree92eb6c3525057bb9b3fe6d22cd10b53582c53bea /mpvcore
parentd658b115a0fcb9b313b2eb77ed860649f83257b0 (diff)
downloadmpv-62925a5c15a76568c155259bafa1361ec139c66b.tar.bz2
mpv-62925a5c15a76568c155259bafa1361ec139c66b.tar.xz
options: allow hwaccel formats in -vf format/noformat
There are 3 users of the image format option type: demux_raw, vf_format, vf_noformat. Allow the hwaccel formats (like vdpau etc.) in general, so that the filters can use it. This won't work for demux_raw, so explicitly reject these formats there.
Diffstat (limited to 'mpvcore')
-rw-r--r--mpvcore/m_option.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpvcore/m_option.c b/mpvcore/m_option.c
index cda2569454..066500cd71 100644
--- a/mpvcore/m_option.c
+++ b/mpvcore/m_option.c
@@ -1563,7 +1563,7 @@ static int parse_imgfmt(const m_option_t *opt, struct bstr name,
return M_OPT_EXIT - 1;
}
- unsigned int fmt = mp_imgfmt_from_name(param, false);
+ unsigned int fmt = mp_imgfmt_from_name(param, true);
if (!fmt) {
mp_msg(MSGT_CFGPARSER, MSGL_ERR,
"Option %.*s: unknown format name: '%.*s'\n",