avfilter/af_silenceremove: remove dead code
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 6 Sep 2014 10:56:03 +0000 (12:56 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 6 Sep 2014 19:36:56 +0000 (21:36 +0200)
Fixes CID1237284

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/af_silenceremove.c

index 3f6cb7a..02b64ce 100644 (file)
@@ -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;
                     }
                 }
             }