[FFmpeg-cvslog] avfilter/af_silenceremove: cover default case too

Paul B Mahol git at videolan.org
Tue Sep 7 20:46:19 EEST 2021


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Tue Sep  7 18:56:41 2021 +0200| [1d1e8a47b79e6ac4bca0bf26c6746028efe861ce] | committer: Paul B Mahol

avfilter/af_silenceremove: cover default case too

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1d1e8a47b79e6ac4bca0bf26c6746028efe861ce
---

 libavfilter/af_silenceremove.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavfilter/af_silenceremove.c b/libavfilter/af_silenceremove.c
index e60f0f8d3a..65d05b4889 100644
--- a/libavfilter/af_silenceremove.c
+++ b/libavfilter/af_silenceremove.c
@@ -511,6 +511,8 @@ static int config_input(AVFilterLink *inlink)
                 break;
         }
         break;
+    default:
+        return AVERROR_BUG;
     }
 
     return 0;
@@ -847,6 +849,8 @@ silence_copy_flush:
     case SILENCE_STOP:
 silence_stop:
         break;
+    default:
+        ret = AVERROR_BUG;
     }
 
     av_frame_free(&in);



More information about the ffmpeg-cvslog mailing list