diff options
author | wm4 <wm4@nowhere> | 2020-05-06 15:24:47 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-05-06 15:27:25 +0200 |
commit | 12451ac7ebfd6dd90e1425f065785dc2654fcf3c (patch) | |
tree | 5ae47928739885f9b60f17b6c89b0525d7ca0eda /video/filter | |
parent | e567d0637730203d4ee6529dba470f69d54a0f42 (diff) | |
download | mpv-12451ac7ebfd6dd90e1425f065785dc2654fcf3c.tar.bz2 mpv-12451ac7ebfd6dd90e1425f065785dc2654fcf3c.tar.xz |
vf:format: don't error when using convert=yes and not specifying fmt
Diffstat (limited to 'video/filter')
-rw-r--r-- | video/filter/vf_format.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/filter/vf_format.c b/video/filter/vf_format.c index 8687db783b..b0cf04db7a 100644 --- a/video/filter/vf_format.c +++ b/video/filter/vf_format.c @@ -127,7 +127,7 @@ static void vf_format_process(struct mp_filter *f) set_params(priv->opts, &par, true); - if (par.imgfmt != outfmt) { + if (outfmt && par.imgfmt != outfmt) { par.imgfmt = outfmt; par.hw_subfmt = 0; } |