summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorJulian <MyFakeAcc.4@googlemail.com>2015-02-09 00:05:09 +0100
committerDiogo Franco (Kovensky) <diogomfranco@gmail.com>2015-02-16 18:13:22 +0900
commitf4263a811f434540ce51c85f27b968e059fb5299 (patch)
treebd882166d37ff22448eb94816d54d17281ece227 /video
parenta6bf8e7c3621b9b68da89aebe2a2f779b1968a52 (diff)
downloadmpv-f4263a811f434540ce51c85f27b968e059fb5299.tar.bz2
mpv-f4263a811f434540ce51c85f27b968e059fb5299.tar.xz
vf_vapoursynth: add display refresh rate property
This value is not necessarily trustworthy (it might change) and can be 0. (cherry picked from commit 349067a6ab2d03024b3e984e80314f303dd14432)
Diffstat (limited to 'video')
-rw-r--r--video/filter/vf.h1
-rw-r--r--video/filter/vf_vapoursynth.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/video/filter/vf.h b/video/filter/vf.h
index b27f27e743..23791e679a 100644
--- a/video/filter/vf.h
+++ b/video/filter/vf.h
@@ -122,6 +122,7 @@ struct vf_chain {
uint8_t allowed_output_formats[IMGFMT_END - IMGFMT_START];
double container_fps;
+ double display_fps;
struct mp_log *log;
struct MPOpts *opts;
diff --git a/video/filter/vf_vapoursynth.c b/video/filter/vf_vapoursynth.c
index a4927216bb..8ae8add8b3 100644
--- a/video/filter/vf_vapoursynth.c
+++ b/video/filter/vf_vapoursynth.c
@@ -592,6 +592,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);
+ p->vsapi->propSetFloat(vars, "display_fps", vf->chain->display_fps, 0);
if (p->drv->load(vf, vars) < 0)
goto error;