avfilter/avf_avectorscope: Assert that format is valid

This should help coverity realize that src[] is inited

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
pull/254/merge
Michael Niedermayer 8 years ago
parent 01729f77dd
commit 362f6c91e4
  1. 2
      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) {

Loading…
Cancel
Save