Closed Andreii closed 1 year ago
Your build must be a debug avisynth build. Anyway, yes, such an assert should not be kicked, usually the arrayness is always checked in the internal code, before we access something as an array. (even if it is a single variable which is a one-element array, where only index=0 exists)
Fixed on my system, I will commit it later this week (other changes are pending). The bug occured when ConvertToYUY2 was called. When there is no direct conversion path between the input color space and YUY2, first ConvertToYV16 is called internally. But ConvertToYV16 (ConvertToYUV422) has one more parameter (ChromaOutPlacement) than ConvertToYUY2 has, so there was a mismatch when passing only YUY2's 8 parameters while YV16 conversion expected 9 parameters.
Hello @pinterf !
Thank you for your prompt response! And for the fast fix.
For future reference, how could I make a debug avisynth build? I saw I can remove "--disable-debug" in ffmpeg, what should I change for the aviSynthBuild?
I'm not familiar with ninja, on Windows I'm using --config Release
for my gcc builds
In a context something like this:
cmake ..\AviSynthPlus -G "MinGW Makefiles" -DBUILD_DIRECTSHOWSOURCE:bool=off -DENABLE_PLUGINS:bool=on -DENABLE_INTEL_SIMD:bool=on
cmake --build . --config Release
By default it seems that you built a debug Avisynth, if you've seen the assert. if not, use --config Debug
I guess.
You can configure the build type in the cmake line, -DCMAKE_BUILD_TYPE.
When not set by the project, CMAKE_BUILD_TYPE is an empty string, which probably does fall through to Debug in some circumstances. I could reproduce this with a default build, but not with -DCMAKE_BUILD_TYPE=Release
.
Hello,
I am trying to use Overlay function in AviSynthPlus and I am getting the following error:
ffmpeg: ../avs_core/core/interface.cpp:871: const AVSValue& AVSValue::OPERATOR_INDEX(int) const: Assertion 'IsArray() && index>=0 && index<array_size' failed.
I took the test avs script from the documentation here: http://avisynth.nl/index.php/Overlay
Am I doing something wrong?
Thank you in advance !
Environment:
Installation aviSynthPlus:
Installation ffmpeg:
Overlay test: test.avs