[FFmpeg-devel] [PATCH] avfilter/avf_avectorscope: Assert that format is valid

Paul B Mahol onemda at gmail.com
Thu Apr 20 22:33:31 EEST 2017


On 4/20/17, Michael Niedermayer <michael at niedermayer.cc> wrote:
> This should help coverity realize that src[] is inited
>
> Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> ---
>  libavfilter/avf_avectorscope.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/libavfilter/avf_avectorscope.c b/libavfilter/avf_avectorscope.c
> index 3063283efb..c6e278d30d 100644
> --- a/libavfilter/avf_avectorscope.c
> +++ b/libavfilter/avf_avectorscope.c
> @@ -267,6 +267,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame
> *insamples)
>              src[0] = samplesf[0];
>              src[1] = samplesf[1];
>              break;
> +        default:
> +            av_assert2(0);
>          }
>
>          switch (s->scale) {
> --
> 2.11.0
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>

ok


More information about the ffmpeg-devel mailing list