Skip to content

Commit

Permalink
avisynth: Update headers and fix playback
Browse files Browse the repository at this point in the history
- Build the latest AviSynth headers using CMake, as proposed in #134
- Add and initialize AVS_Linkage to fix video loading

Video and audio playback now works in most cases, but still crashes for
some files.
  • Loading branch information
arch1t3cht committed Jul 4, 2022
1 parent fdcb0ee commit e240a5f
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 751 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ tools/repack-thes-dict.dSYM

# Meson
build*/
subprojects/avisynth
subprojects/boost*/
subprojects/cairo*
subprojects/ffmpeg
Expand Down
8 changes: 8 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,14 @@ endforeach
if host_machine.system() == 'windows' and get_option('avisynth').enabled()
conf.set('WITH_AVISYNTH', 1) # bundled separately with installer
deps += cc.find_library('avifil32', required: true)

avs_opt = cmake.subproject_options()
avs_opt.add_cmake_defines({
'HEADERS_ONLY': true
})

avs = cmake.subproject('avisynth', options: avs_opt)
deps_inc += avs.include_directories('AviSynth-Headers')
endif

if host_machine.system() == 'windows' and not get_option('directsound').disabled()
Expand Down
Loading

0 comments on commit e240a5f

Please sign in to comment.