| @@ -328,6 +328,7 @@ static void fn(filter_start)(AVFilterContext *ctx, · 327 unmodified lines |
| 328 | 328 | ftype *start_cache = (ftype *)s->start_cache; |
| 329 | 329 | const int start_silence = s->start_silence; |
| 330 | 330 | int window_size = start_window_nb_samples; |
| 331 | + const int cache_size = s->cache_size; |
| 331 | 332 | int *front = s->start_front; |
| 332 | 333 | int *back = s->start_back; |
| 333 | 334 | |
| @@ -352,7 +353,7 @@ static void fn(filter_start)(AVFilterContext *ctx, · 18 unmodified lines |
| 352 | 353 | ftype start_ow = startw[start_wpos + ch]; |
| 353 | 354 | ftype tstart; |
| 354 | 355 | |
| 355 | | − tstart = fn(s->compute)(start_cache + ch * start_window_nb_samples, |
| 356 | + tstart = fn(s->compute)(start_cache + ch * cache_size, |
| 356 | 357 | start_sample, |
| 357 | 358 | start_ow, |
| 358 | 359 | window_size, |
| @@ -423,8 +424,9 @@ static void fn(filter_stop)(AVFilterContext *ctx, · 64 unmodified lines |
| 423 | 424 | const int stop_duration = s->stop_duration; |
| 424 | 425 | ftype *stop_cache = (ftype *)s->stop_cache; |
| 425 | 426 | const int stop_silence = s->stop_silence; |
| 426 | | − const int restart = s->restart; |
| 427 | 427 | int window_size = stop_window_nb_samples; |
| 428 | + const int cache_size = s->cache_size; |
| 429 | + const int restart = s->restart; |
| 428 | 430 | int *front = s->stop_front; |
| 429 | 431 | int *back = s->stop_back; |
| 430 | 432 | |
| @@ -446,7 +448,7 @@ static void fn(filter_stop)(AVFilterContext *ctx, · 15 unmodified lines |
| 446 | 448 | ftype stop_ow = stopw[stop_wpos + ch]; |
| 447 | 449 | ftype tstop; |
| 448 | 450 | |
| 449 | | − tstop = fn(s->compute)(stop_cache + ch * stop_window_nb_samples, |
| 451 | + tstop = fn(s->compute)(stop_cache + ch * cache_size, |
| 450 | 452 | stop_sample, |
| 451 | 453 | stop_ow, |
| 452 | 454 | window_size, |