Skip to content

Commit

Permalink
fix wrong default value of 'EMask()'.
Browse files Browse the repository at this point in the history
  • Loading branch information
chikuzen committed Mar 28, 2016
1 parent a578765 commit b8c5aee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions avisynth/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Syntax:

sigma - same as TCannyMod. (default = 0.5)

chroma - same as TCannyMod. (default = 1)
chroma - same as TCannyMod. (default = 0)

opt - same as TCannyMod. (default = automated)

Expand Down Expand Up @@ -116,7 +116,7 @@ Note:
Thus, if you want to crop the left side of your source clip before this filter,
you have to set crop(align=true).

- Probabry, this filter work with Avisynth+'s "MT_NICE_FILTER" mode.(from v1.0.0)
- Probabry, this filter is able to work on Avisynth+'s "MT_NICE_FILTER" mode.(from v1.0.0)

- TCannyMod_avx.dll is compiled with /arch:AVX.

Expand Down
2 changes: 1 addition & 1 deletion avisynth/src/tcannymod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ create_emask(AVSValue args, void* user_data, ise_t* env)
if (sigma < 0.0f) {
env->ThrowError("EMask: sigma must be greater than zero.");
}
int chroma = args[2].AsInt(1);
int chroma = args[2].AsInt(0);
if (chroma < 0 || chroma > 4) {
env->ThrowError("EMask: chroma must be set to 0, 1, 2, 3 or 4.");
}
Expand Down

0 comments on commit b8c5aee

Please sign in to comment.