mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-28 14:01:27 +00:00
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
Block a user