fix possible segf in median filter

refactor fx init / deinit
This commit is contained in:
niels
2012-06-19 06:42:06 +02:00
parent f1d60dbbd4
commit 2c6efc4b51
10 changed files with 177 additions and 140 deletions

View File

@@ -32,7 +32,7 @@ vj_effect *medianfilter_init(int w, int h)
ve->limits[0] = (int *) vj_calloc(sizeof(int) * ve->num_params); /* min */
ve->limits[1] = (int *) vj_calloc(sizeof(int) * ve->num_params); /* max */
ve->limits[0][0] = 0;
ve->limits[1][0] = 127;
ve->limits[1][0] = (h / 4) - 1;
ve->defaults[0] = 3;// 255;
ve->description = "Constant Time Median Filter";
ve->sub_format = 0;