summaryrefslogtreecommitdiffstats
path: root/video/filter/vf_vapoursynth.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-01-03 03:37:05 +0100
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>2015-01-25 17:00:18 +0900
commitdbc00297cc36e8470ff9996111077a72ab8a4a5f (patch)
tree0ea7eacc31563afced92a73a434677e830f0d58a /video/filter/vf_vapoursynth.c
parent1e14d65db88017b41f661f105a23b71457341e80 (diff)
downloadmpv-dbc00297cc36e8470ff9996111077a72ab8a4a5f.tar.bz2
mpv-dbc00297cc36e8470ff9996111077a72ab8a4a5f.tar.xz
vf_vapoursynth: pass through container FPS value
This is basically a hack; but apparently a needed one, since many vapoursynth filters insist on having a FPS set. We need to apply the FPS override before creating the filters. Also change some terminal output related to the FPS value.
Diffstat (limited to 'video/filter/vf_vapoursynth.c')
-rw-r--r--video/filter/vf_vapoursynth.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/filter/vf_vapoursynth.c b/video/filter/vf_vapoursynth.c
index 30fd992071..4b06d28b76 100644
--- a/video/filter/vf_vapoursynth.c
+++ b/video/filter/vf_vapoursynth.c
@@ -590,6 +590,7 @@ static int reinit_vs(struct vf_instance *vf)
p->vsapi->propSetInt(vars, "video_in_dw", p->fmt_in.d_w, 0);
p->vsapi->propSetInt(vars, "video_in_dh", p->fmt_in.d_h, 0);
+ p->vsapi->propSetFloat(vars, "container_fps", vf->chain->container_fps, 0);
if (p->drv->load(vf, vars) < 0)
goto error;