1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-27 17:42:17 +00:00
mpv/TOOLS
Guido Cella 075154175d TOOLS/autocrop.lua: improve enable/disable condition
The previous code tried to disable autocrop for cover-art by testing
that track-list/$vid/albumart is false, however, $vid is completely
unrelated to the track-list index.

It only sometimes succeeded to disable for albumart, by accident,
e.g. with one audio track and one video track where $vid==1 and
track-list/1 happens to be the video (cover art) track.

The new code detects the currently-used video track by finding a track
with type=="video" and selected==true. Unlike the previous code, it
also works in scenarios with many audio/video/sub tracks.

Additionally, autocrop is now enabled also with lavfi-complex, which
should be considered an improvement. The previous code implicitly
disabled it with lavfi-complex because $vid is nil on such case.
2021-07-14 11:58:29 +03:00
..
lua TOOLS/autocrop.lua: improve enable/disable condition 2021-07-14 11:58:29 +03:00
mpv-osd-symbols.sfdir osc: use custom symbols for window controls 2019-12-11 13:53:10 -08:00
osxbundle/mpv.app/Contents osxbundle: fix slow and wasteful memory allocation 2021-05-16 13:50:40 +02:00
__init__.py build: use matroska.py & file2string.py as python modules 2017-01-05 11:25:18 +01:00
appveyor-build.sh ci: remove libass enablement 2020-03-22 14:33:41 +02:00
appveyor-install.sh appveyor: Use MSYS2's spirv-cross package instead of building it 2021-02-23 01:38:39 +02:00
dylib-unhell.py osxbundle: simplify process_libraries() to eliminate leafs() 2019-12-15 12:33:25 +01:00
file2string.py file2string: remove question mark from safe chars 2020-11-22 17:16:57 +01:00
gen-osd-font.sh Add script to generate otf from sfdir using fontforge 2017-04-20 17:40:45 +01:00
idet.sh
matroska.py matroska.py: remove python2 support 2020-11-27 11:17:29 +01:00
mpv_identify.sh mpv_identify: replace deprecated fps property 2017-06-25 14:24:49 +01:00
osxbundle.py *.py: cosmetic changes 2020-02-27 21:36:21 +01:00
stats-conv.py *.py: cosmetic changes 2020-02-27 21:36:21 +01:00
travis-deps travis: stop excluding ffmpeg-git 2017-12-22 21:49:21 +01:00
travis-rebuild-website build: move website rebuild into Linux/clang travis job 2021-05-16 01:55:37 +03:00
umpv umpv: Use generator expression for files 2021-03-03 21:35:33 +02:00
uncrustify.cfg