summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-01-03 14:44:20 +0100
committerwm4 <wm4@nowhere>2015-01-03 14:44:20 +0100
commitd5f1170679f5432375a8c2ee7629ed11fe4a94c6 (patch)
tree95bbb04231b9e3ebc0a0e9090fe768c77948d265
parent0070e39342ccacdb17e4aa1ecd987436cb34308a (diff)
downloadmpv-d5f1170679f5432375a8c2ee7629ed11fe4a94c6.tar.bz2
mpv-d5f1170679f5432375a8c2ee7629ed11fe4a94c6.tar.xz
vf_vapoursynth: fix Lua backend
It couldn't handle the newly added float variable.
-rw-r--r--video/filter/vf_vapoursynth.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/video/filter/vf_vapoursynth.c b/video/filter/vf_vapoursynth.c
index 4b06d28b76..178ebb2bc1 100644
--- a/video/filter/vf_vapoursynth.c
+++ b/video/filter/vf_vapoursynth.c
@@ -867,6 +867,9 @@ static void vsmap_to_table(lua_State *L, int index, VSMap *map)
case ptInt:
lua_pushnumber(L, vsapi->propGetInt(map, key, 0, NULL));
break;
+ case ptFloat:
+ lua_pushnumber(L, vsapi->propGetFloat(map, key, 0, NULL));
+ break;
case ptNode: {
VSNodeRef *r = vsapi->propGetNode(map, key, 0, NULL);
MP_TARRAY_APPEND(p, p->gc_noderef, p->num_gc_noderef, r);