diff --git a/libswresample/swresample.c b/libswresample/swresample.c index 245a85b790..d8a066f072 100644 --- a/libswresample/swresample.c +++ b/libswresample/swresample.c @@ -419,6 +419,10 @@ static int resample(SwrContext *s, AudioData *out_param, int out_count, int ret_sum=0; int border=0; + av_assert1(s->in_buffer.ch_count == in_param->ch_count); + av_assert1(s->in_buffer.planar == in_param->planar); + av_assert1(s->in_buffer.fmt == in_param->fmt); + tmp=out=*out_param; in = *in_param;