diff options
author | wm4 <wm4@nowhere> | 2013-12-07 19:33:11 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-12-07 19:33:11 +0100 |
commit | 0af9ede5466fa5b02348d5cfb3182f80771a5f38 (patch) | |
tree | e314f304cac6bc675a289d5b4f6982fc713071a6 /video/filter/vf_gradfun.c | |
parent | bb6165342db0ba60fefa97afe770b393fd6cb463 (diff) | |
download | mpv-0af9ede5466fa5b02348d5cfb3182f80771a5f38.tar.bz2 mpv-0af9ede5466fa5b02348d5cfb3182f80771a5f38.tar.xz |
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.
Diffstat (limited to 'video/filter/vf_gradfun.c')
-rw-r--r-- | video/filter/vf_gradfun.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |