Commit c5c35554 authored by Michael Niedermayer's avatar Michael Niedermayer

swr: add some asserts to resample()

These check that the internal and input buffers match in format
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 75e25f85
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment