Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -197,6 +197,9 @@ static void fn(filter_start)(AVFilterContext *ctx, · 196 unmodified lines | ||
| 197 | 197 | start_nb_samples, |
| 198 | 198 | start_window_nb_samples); |
| 199 | 199 | |
| 200 | + if (s->start_found_periods < 0) | |
| 201 | + goto skip; | |
| 202 | + | |
| 200 | 203 | if (s->detection != D_PEAK) |
| 201 | 204 | window_size = s->start_window_size; |
| 202 | 205 | |
| @@ -244,6 +247,7 @@ static void fn(filter_start)(AVFilterContext *ctx, · 41 unmodified lines | ||
| 244 | 247 | s->start_sample_count = 0; |
| 245 | 248 | } |
| 246 | 249 | |
| 250 | +skip: | |
| 247 | 251 | if (s->start_found_periods < 0) { |
| 248 | 252 | const int dst_pos = out_nb_samples * nb_channels; |
| 249 | 253 | for (int ch = 0; ch < nb_channels; ch++) |