mirror of
https://github.com/game-stop/veejay.git
synced 2025-12-16 04:40:11 +01:00
fix possible segf in median filter
refactor fx init / deinit
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user