Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se |
|
|
#1 | Link |
|
AviSynth Enthusiast
Join Date: Jul 2002
Location: California, U.S.
Posts: 1,267
|
Fixes to the type matcher
I've been poking around in the AviSynth source to try to fix that pesky problem with *s in plug-in parameter strings. (For anyone not aware, for most cases the * modifier wasn't accepting zero matches. As a consequence, AviSynth didn't allow Animate/ApplyRange to be used with filters that take no arguments, nor did it allow SelectEvery(n) (which is supposed to be equivalent to SelectEvery(n, 0)).)
AFAICT, the following quick-fix seems to work: In TypeMatch in avisynth.cpp, I changed: Code:
return ( *param_types == 0 || *param_types == '['
|| *param_types == '+' || *param_types == '*');
Code:
return *param_types == '\0' || *param_types == '['
|| *param_types == '+' || param_types[0] == '*' || param_types[1] == '*';
I also modified AddFunction to check the correctness of filters' parameter strings. TypeMatchTest.zip contains a modified avisynth.cpp (based on a version I checked out of CVS a few hours ago) along with a really basic command-line test harness for TypeMatch. Last edited by stickboy; 29th March 2004 at 13:32. |
|
|
|
|
|
#3 | Link | |
|
AviSynth Enthusiast
Join Date: Jul 2002
Location: California, U.S.
Posts: 1,267
|
Quote:
|
|
|
|
|
|
|
#4 | Link | |
|
Retired AviSynth Dev ;)
![]() Join Date: Nov 2001
Location: Dark Side of the Moon
Posts: 3,480
|
Quote:
![]() I have ImageSequence.dll in my plugin dir, and it contains invalid parameters. Since vdubmod scans available plugins, this leads to a crash on every vdubmod startup. Since it is not as carefully checked, vdubmod simply doesn't start up, but bombs out. So no go. At least for default implementations.
__________________
Regards, sh0dan // VoxPod |
|
|
|
|
![]() |
|
|