Kacper Michajłow
8fa0e09b27
osc.lua: fix some lint warnings
2024-05-12 20:06:39 +02:00
Kacper Michajłow
e17546333a
options.lua: fix some lint warnings
2024-05-12 20:06:39 +02:00
Kacper Michajłow
fe488151dc
defaults.lua: fix some lint warnings
2024-05-12 20:06:39 +02:00
Kacper Michajłow
5e77d3b640
console.lua: fix some lint warnings
2024-05-12 20:06:39 +02:00
Kacper Michajłow
1831c548db
auto_profiles.lua: fix some lint warnings
2024-05-12 20:06:39 +02:00
Kacper Michajłow
c5c5a5a2ad
test-hooks.lua: fix variable shadowing warning
2024-05-12 20:06:39 +02:00
Kacper Michajłow
c431b532b8
status-line.lua: fix unused variable warning
2024-05-12 20:06:39 +02:00
Kacper Michajłow
0f7aab534a
skip-logo.lua: fix some lint warnings
2024-05-12 20:06:39 +02:00
Kacper Michajłow
885cc30596
pause-when-minimize.lua: fix unused variable warning
2024-05-12 20:06:39 +02:00
Kacper Michajłow
b927857d03
ontop-playback.lua: fix unused variable warning
2024-05-12 20:06:39 +02:00
Kacper Michajłow
50c4b2cd4c
observe-all.lua: fix some lint warnings
2024-05-12 20:06:39 +02:00
Kacper Michajłow
16c19445bc
cycle-deinterlace-pullup.lua: fix unused variable warnings
2024-05-12 20:06:39 +02:00
Kacper Michajłow
e47d768d51
command-test.lua: fix some lint warnings
...
Fixes unused variable warnings.
2024-05-12 20:06:39 +02:00
Kacper Michajłow
a1caa00187
autoload.lua: fix some lint warnings
...
Fixes:
autoload.lua:201:1: setting undefined field filter of global table
autoload.lua:209:1: setting undefined field append of global table
autoload.lua:322:11: value assigned to variable extensions is unused
2024-05-12 20:06:39 +02:00
Kacper Michajłow
b4fcf7d248
autodeint.lua: fix some lint warnings
...
Fixes:
autodeint.lua:90:1: right side of assignment has more values than left
side expects
2024-05-12 20:06:39 +02:00
Kacper Michajłow
fabc92453f
audio-hotplug-test.lua: fix some lint warnings
...
Fixes:
audio-hotplug-test.lua:1:7: unused variable utils
audio-hotplug-test.lua:3:61: unused argument name
audio-hotplug-test.lua:5:9: unused loop variable index
2024-05-12 20:06:39 +02:00
Kacper Michajłow
71d9c31394
acompressor.lua: break long lines
2024-05-12 20:06:39 +02:00
Kacper Michajłow
0084fbd458
github/workflows: add lua linting
2024-05-12 20:06:39 +02:00
sfan5
a33fd3b4cf
Revert "stream: don't try to read from all-sparse/no-data files"
...
The stream layer is just not the right place to make this change
since it's also used for completely unrelated purposes such as reading
configs.
This reverts commit bb7a485c0932375b888a61966970696c06851a15.
2024-05-12 18:06:21 +02:00
Kacper Michajłow
21e167cc6a
vf_vapoursynth: pass image properties from input
...
This might not always be correct depending on filtering done in VS. But
unless VS send us all the metadata we have to get it from somewhere.
Fixes dynamic frame metadata, which was copied from fmt_in, initialized
only upon reinitialization.
Fixes crashes caused by the use of stale pointers.
Fixes : #13956
2024-05-12 17:56:53 +02:00
Kacper Michajłow
83e51a82e6
vf_vapoursynth: fix _ChromaLocation
2024-05-12 17:56:53 +02:00
Kacper Michajłow
3874145248
hwdec_cuda_vk: add missing io.h include
...
Fixes compilation on Windows with cuda enabled.
2024-05-11 21:34:24 +02:00
Kacper Michajłow
552c4552a2
audio: report EOF also for untimed AO mode
2024-05-10 23:56:56 +02:00
Guido Cella
aa067f5984
console.lua: increase margins from the bottom-left corner
...
console.lua is too close to the left and bottom of the OSD IMO. Make the
margins a bit bigger.
2024-05-10 22:57:44 +02:00
Kacper Michajłow
f17ad792c6
vo_gpu_next: check if existing cache file has correct size
2024-05-10 22:54:25 +02:00
Guido Cella
1f69659a77
test: test mp_guess_lang_from_filename with [] and ()
2024-05-10 22:54:12 +02:00
Kacper Michajłow
d79aef1425
meson: add link flags also to cpp
...
If subprojects are used, linking language of mpv might be upgraded to C++
add our flags there too.
2024-05-10 21:42:10 +02:00
Kacper Michajłow
0d18c1bfdc
audio: change bps format to int64_t
...
Same as ffmpeg uses. Such big values does not make sense probably, but
let's not overflow values and maybe one day it will be useful.
Fixes signed integer overflow.
2024-05-10 05:16:27 +02:00
Kacper Michajłow
c1d5f0e9c8
fuzzers: set network-timeout to 1 second
...
We don't expect any data to actually access, so timeout as soon as
possible.
2024-05-10 04:15:10 +02:00
Kacper Michajłow
aa3cf6d57b
command: add dolby-vision-profile and dolby-vision-level to track-list
2024-05-10 01:26:30 +02:00
Kacper Michajłow
c83c273400
demux_mkv: inject AV_PKT_DATA_DOVI_CONF to demuxed packets
2024-05-10 01:26:30 +02:00
Kacper Michajłow
a094971ce8
demux_mkv: demux Block Additional Mappings
...
Parse Dolby Vision configuration.
2024-05-10 01:26:30 +02:00
Guido Cella
63d820bd68
test: test mp_guess_lang_from_filename()
2024-05-10 01:22:31 +02:00
Guido Cella
20b8fe05bf
misc/language: move mp_guess_lang_from_filename() here
2024-05-10 01:22:31 +02:00
Guido Cella
dffc37dcfa
external_files: detect language tags with hyphens
...
This loads subtitle files like foo.en-US.srt with --sub-auto=exact.
To preserve the case of these locales and not convert them to e.g.
en-us, stop lower casing filenames, and instead use case insensitive
functions to check if the media filename is contained in the external
filenames. Extensions, whitelisted cover art filenames and idx files
were already being compared case insensitively.
Fixes #12372 , fixes #13251 .
2024-05-10 01:22:31 +02:00
Guido Cella
e451d9c21b
external_files: rename variables in guess_lang_from_filename()
2024-05-10 01:22:31 +02:00
Kacper Michajłow
e175b3f685
lcms: check for null arg in gl_parse_3dlut_size
...
This fixes `icc-3dlut-size` validation in config which would crash if
set without argument.
Found by OSS-Fuzz.
2024-05-09 21:21:40 +02:00
Kacper Michajłow
4fe67933c2
misc/language: store string length instead of null terminator
...
Allows to construct bstr directly without strlen, while keeping language
table the same size.
2024-05-09 17:12:55 +02:00
Kacper Michajłow
5009e13431
player/loadfile: match language and subcodes
2024-05-09 17:12:55 +02:00
Kacper Michajłow
40ba63405f
Revert "misc: add language-matching utilities"
...
This reverts commit 8c8d97c26c
.
2024-05-09 17:12:55 +02:00
Kacper Michajłow
65c71b1643
Revert "loadfile: use mp_match_lang_single"
...
This reverts commit 76009bf7a6
.
2024-05-09 17:12:55 +02:00
Kacper Michajłow
b7216d5d03
Revert "loadfile: compute audio lang for sub selection when using lavfi-complex"
...
This reverts commit 9e6c6c0897
.
2024-05-09 17:12:55 +02:00
Kacper Michajłow
bf6d49cbd4
fuzzer_loadfile_direct: exclude paths also for file://
...
Loading external files makes little sense. Might disable this completely
later, but let see how it works, The idea is the same as for direct
load. Exclude paths starting with `file://.` and `file:///`. But still
fuzz any processing that other input might have. It shouldn't be a huge
problem if we do `file://mpv` for example. Not great, but also not
terrible.
2024-05-09 02:01:24 +02:00
Kacper Michajłow
d6803c4518
demux_edl: make protocol comparison case insensitive
...
Else nested edl protocol causes infinite recursion, when loading.
Found by OSS-Fuzz.
2024-05-08 18:52:40 +02:00
Kacper Michajłow
49cb039b8c
fuzzer_set_property: fix for other types than string
...
I tested with string version, oops.
2024-05-08 18:52:40 +02:00
Kacper Michajłow
325abfeed7
dmabuf: fix warnings on 320-bit build
2024-05-08 18:52:40 +02:00
Kacper Michajłow
aa9cc72199
filter/vf_gpu_vulkan: fix Vulkan handle type
2024-05-08 18:52:40 +02:00
Kacper Michajłow
111d90d9e5
player/client: fix typo in description of MPV_ERROR_UNINITIALIZED
2024-05-08 18:52:40 +02:00
Kacper Michajłow
e1d1eb7ace
fuzzers: add fuzzer for config parsers
2024-05-08 18:52:40 +02:00
nanahi
467c1e860a
Revert "ao: in ao_play_data, wakeup core for untimed AO as well"
...
This problem does not exist with --demuxer=lavf. --demuxer=mkv just never
signals EOF for the problematic sample, so it needs to be fixed there, not
in AO.
This reverts commit 0cfd52074b
.
2024-05-08 11:14:01 +02:00