avfilter/af_ladspa: fix av_assert0()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
pull/167/head
Paul B Mahol 9 years ago
parent b4431c80ef
commit a142308dcd
  1. 4
      libavfilter/af_ladspa.c

@ -145,7 +145,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
AVFrame *out;
int i, h, p;
av_assert0(in->channels == s->nb_inputs);
av_assert0(in->channels == (s->nb_inputs * s->nb_handles));
if (!s->nb_outputs ||
(av_frame_is_writable(in) && s->nb_inputs == s->nb_outputs &&
@ -160,7 +160,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
av_frame_copy_props(out, in);
}
av_assert0(!s->nb_outputs || out->channels == s->nb_outputs);
av_assert0(!s->nb_outputs || out->channels == (s->nb_outputs * s->nb_handles));
for (h = 0; h < s->nb_handles; h++) {
for (i = 0; i < s->nb_inputs; i++) {

Loading…
Cancel
Save