[FFmpeg-cvslog] avfilter/vf_waveform: add default case when picking input formats

Paul B Mahol git at videolan.org
Fri Dec 8 13:33:27 EET 2017


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Fri Dec  8 12:31:01 2017 +0100| [299a6222976646f27a83773f40bc9668f96e6828] | committer: Paul B Mahol

avfilter/vf_waveform: add default case when picking input formats

Should silence compiler warnings.

Signed-off-by: Paul B Mahol <onemda at gmail.com>

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

 libavfilter/vf_waveform.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavfilter/vf_waveform.c b/libavfilter/vf_waveform.c
index 0c574742a0..02a7046f33 100644
--- a/libavfilter/vf_waveform.c
+++ b/libavfilter/vf_waveform.c
@@ -295,6 +295,7 @@ static int query_formats(AVFilterContext *ctx)
     case FLAT:    in_pix_fmts = in_flat_pix_fmts;    break;
     case ACOLOR:
     case COLOR:   in_pix_fmts = in_color_pix_fmts;   break;
+    default: return AVERROR_BUG;
     }
 
     if (!ctx->inputs[0]->out_formats) {



More information about the ffmpeg-cvslog mailing list