[FFmpeg-devel] [PATCH] avfilter/af_silenceremove: remove dead code

Michael Niedermayer michaelni at gmx.at
Sat Sep 6 12:56:03 CEST 2014


Fixes CID1237284

Signed-off-by: Michael Niedermayer <michaelni at 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



More information about the ffmpeg-devel mailing list