From 0af9ede5466fa5b02348d5cfb3182f80771a5f38 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 7 Dec 2013 19:33:11 +0100 Subject: vf: remove flags from filter format status I don't think we need these flags anymore. Simplify the code and get rid of the vf_format struct. There still is the vf_format.configured field, but this can be replaced by checking for a valid image format. --- video/filter/vf_gradfun.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'video/filter/vf_gradfun.c') diff --git a/video/filter/vf_gradfun.c b/video/filter/vf_gradfun.c index 39dd050002..7c9a0ecab3 100644 --- a/video/filter/vf_gradfun.c +++ b/video/filter/vf_gradfun.c @@ -359,8 +359,8 @@ static void uninit(struct vf_instance *vf) static void lavfi_recreate(struct vf_instance *vf) { struct vf_priv_s *p = vf_lw_old_priv(vf); - int w = vf->fmt_in.params.w; - int h = vf->fmt_in.params.h; + int w = vf->fmt_in.w; + int h = vf->fmt_in.h; p->radius = p->cfg_radius; if (p->cfg_size > -1) p->radius = (p->cfg_size / 100.0f) * sqrtf(w * w + h * h); -- cgit v1.2.3