avfilter build issues with ffmpeg 6.0
I'm getting the following error when trying to build from the meson-6.0 branch in GitHub actions with Windows 2022 and Visual Studio 2022 C compiler for the host machine: cl (msvc 19.36.32537 "Microsoft (R) C/C++ Optimizing Compiler Version 19.36.32537 for x64") C linker for the host machine: link link 14.36.32537.0
FAILED: libavfilter-static.a.p/libavfilter_vf_mcdeint.c.obj
"cl" "-Ilibavfilter-static.a.p" "-I." "-I.." "-I..\compat\atomics\win32" "/MD" "/nologo" "/showIncludes" "/utf-8" "/W2" "/O2" "/Zi" "/wo4005" "/wd4018" "/wd4146" "/wd4244" "/wd4305" "/wd4554" "/wd4114" "/wd4028" "/wd4090" "/wd4133" "/utf-8" "-D_ISOC99_SOURCE" "-D_GNU_SOURCE" "-D_LARGEFILE_SOURCE" "-DPIC" "-D_USE_MATH_DEFINES" "-D_CRT_SECURE_NO_WARNINGS" "-D_CRT_NONSTDC_NO_WARNINGS" "-D_WIN32_WINNT=0x0600" "-DHAVE_AV_CONFIG_H" "-DBUILDING_avfilter" "/Fdlibavfilter-static.a.p\libavfilter_vf_mcdeint.c.pdb" /Folibavfilter-static.a.p/libavfilter_vf_mcdeint.c.obj "/c" ../libavfilter/vf_mcdeint.c
../libavfilter/vf_mcdeint.c(185): error C2039: 'coded_frame': is not a member of 'AVCodecContext'
D:\a\strawberry-msvc-dependencies\strawberry-msvc-dependencies\sources\ffmpeg\libavcodec/avcodec.h(426): note: see declaration of 'AVCodecContext'
[2074/2263] Compiling C object libavfilter-static.a.p/libavfilter_af_mcompand.c.obj
[2075/2263] Compiling C object libavfilter-static.a.p/libavfilter_vf_median.c.obj
ffmpeg built here:
I'm getting the following error when building on Windows 10 with Visual Studio 2022 C compiler for the host machine: cl (msvc 19.36.32537 "Microsoft (R) C/C++ Optimizing Compiler Version 19.36.32537 for x64") C linker for the host machine: link link 14.36.32537.0 Basically the same Visual Studio version as in GitHub actions, but a different error. If I pass -Davfilter=disabled I'm getting the same error as in Github Actions.
[1761/2263] Generating 'libavfilter-static.a.p\\vf_nlmeans.asm.o'.
FAILED: libavfilter-static.a.p/vf_nlmeans.asm.o
"C:\Program Files\NASM\nasm.EXE" "-DPIC" "-g" "-f" "win64" "-i" "C:/Data/Projects/strawberry/msvc_/build_debug/ffmpeg/" "-i" "C:/Data/Projects/strawberry/msvc_/build_debug/ffmpeg/build/" "-i" "C:/Data/Projects/strawberry/msvc_/build_debug/ffmpeg/libavfilter/x86/" "-P" "C:/Data/Projects/strawberry/msvc_/build_debug/ffmpeg/build/config.asm" "../libavfilter/x86/vf_nlmeans.asm" "-o" "libavfilter-static.a.p/vf_nlmeans.asm.o"
panic: ../libavfilter/x86/vf_nlmeans.asm: assertion cv8_state.source_files != NULL failed at output/codeview.c:512
[1770/2263] Generating 'libavfilter-static.a.p\\colorspacedsp.asm.o'.
ninja: build stopped: subcommand failed.
No issues with the meson-4.4.4 branch.