summaryrefslogtreecommitdiffstats
path: root/TOOLS/lua/autocrop.lua
diff options
context:
space:
mode:
Diffstat (limited to 'TOOLS/lua/autocrop.lua')
-rw-r--r--TOOLS/lua/autocrop.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/TOOLS/lua/autocrop.lua b/TOOLS/lua/autocrop.lua
index e5292eee18..bf608dc050 100644
--- a/TOOLS/lua/autocrop.lua
+++ b/TOOLS/lua/autocrop.lua
@@ -1,11 +1,11 @@
mp.command('vf add @autocrop.cropdetect:lavfi=graph="cropdetect=limit=24:round=2:reset=0"')
function update_crop_handler()
- cropdetect_metadata=mp.get_property_native("vf-metadata/autocrop.cropdetect")
- mp.command(string.format('vf add @autocrop.crop:crop=%s:%s:%s:%s',
- cropdetect_metadata['lavfi.cropdetect.w'],
- cropdetect_metadata['lavfi.cropdetect.h'],
- cropdetect_metadata['lavfi.cropdetect.x'],
- cropdetect_metadata['lavfi.cropdetect.y']))
+ cropdetect_metadata=mp.get_property_native("vf-metadata/autocrop.cropdetect")
+ mp.command(string.format('vf add @autocrop.crop:crop=%s:%s:%s:%s',
+ cropdetect_metadata['lavfi.cropdetect.w'],
+ cropdetect_metadata['lavfi.cropdetect.h'],
+ cropdetect_metadata['lavfi.cropdetect.x'],
+ cropdetect_metadata['lavfi.cropdetect.y']))
end
mp.add_key_binding("C","update_crop",update_crop_handler)