mirror of https://git.ffmpeg.org/ffmpeg.git
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>
This commit is contained in:
parent
75e25f8540
commit
c5c355546d
|
@ -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…
Reference in New Issue