[FFmpeg-cvslog] avfilter/af_ladspa: fix av_assert0()
Paul B Mahol
git at videolan.org
Mon Dec 21 13:28:14 CET 2015
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Dec 21 13:26:17 2015 +0100| [a142308dcdc3eae82bedfe48dc119ff7d0679d09] | committer: Paul B Mahol
avfilter/af_ladspa: fix av_assert0()
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a142308dcdc3eae82bedfe48dc119ff7d0679d09
---
libavfilter/af_ladspa.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavfilter/af_ladspa.c b/libavfilter/af_ladspa.c
index 6bc7313..0f895eb 100644
--- a/libavfilter/af_ladspa.c
+++ b/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++) {
More information about the ffmpeg-cvslog
mailing list