swr: add some asserts to resample()

These check that the internal and input buffers match in format

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/30/merge
Michael Niedermayer 13 years ago
parent 75e25f8540
commit c5c355546d
  1. 4
      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;

Loading…
Cancel
Save