diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2023-09-18 13:28:59 +0200 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-09-20 19:08:19 +0000 |
commit | 20e584f60bdac96ed915151cf0f92d8282c0a0b3 (patch) | |
tree | 4e5185bf2eba0657534324936ff172508222a29f /TOOLS/lua/autocrop.lua | |
parent | 582c7556c697a1efd24c9e71c91ef8c5a77acd0d (diff) | |
download | mpv-20e584f60bdac96ed915151cf0f92d8282c0a0b3.tar.bz2 mpv-20e584f60bdac96ed915151cf0f92d8282c0a0b3.tar.xz |
options: make video-crop validation more strict
Diffstat (limited to 'TOOLS/lua/autocrop.lua')
-rw-r--r-- | TOOLS/lua/autocrop.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/TOOLS/lua/autocrop.lua b/TOOLS/lua/autocrop.lua index 8c3adfb0c7..b6144aeea1 100644 --- a/TOOLS/lua/autocrop.lua +++ b/TOOLS/lua/autocrop.lua @@ -124,8 +124,8 @@ end function remove_filter(label) if options.use_vo_crop and label == labels.crop then - if mp.get_property('video-crop') ~= '0x0' then - mp.command(string.format("%s set video-crop 0", command_prefix)) + if mp.get_property('video-crop') ~= "" then + mp.command(string.format("%s set video-crop ''", command_prefix)) return true end return false |