Fixes CID1237284

Signed-off-by: Michael Niedermayer <michae...@gmx.at>
---
 libavfilter/af_silenceremove.c |    7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/libavfilter/af_silenceremove.c b/libavfilter/af_silenceremove.c
index 3f6cb7a..02b64ce 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;
                     }
                 }
             }
-- 
1.7.9.5

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to