summaryrefslogtreecommitdiff
path: root/libavfilter/af_silenceremove.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavfilter/af_silenceremove.c')
-rw-r--r--libavfilter/af_silenceremove.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/libavfilter/af_silenceremove.c b/libavfilter/af_silenceremove.c
index 3f6cb7a550..02b64cefec 100644
--- a/libavfilter/af_silenceremove.c
+++ b/libavfilter/af_silenceremove.c
@@ -335,13 +335,10 @@ silence_copy:
flush(out, outlink, &nb_samples_written, &ret);
goto silence_trim;
}
- } else {
- s->mode = SILENCE_COPY_FLUSH;
- flush(out, outlink, &nb_samples_written, &ret);
- goto silence_copy_flush;
}
+ s->mode = SILENCE_COPY_FLUSH;
flush(out, outlink, &nb_samples_written, &ret);
- break;
+ goto silence_copy_flush;
}
}
}