From 12451ac7ebfd6dd90e1425f065785dc2654fcf3c Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 6 May 2020 15:24:47 +0200 Subject: vf:format: don't error when using convert=yes and not specifying fmt --- video/filter/vf_format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3