diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-05-19 17:47:06 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-05-19 19:23:37 +0200 |
commit | c5c355546deeae961363aa6893f4e5b3a0b0f790 (patch) | |
tree | 0219a122fc4e8d98061a3e67e8f250fc8dae6992 | |
parent | 75e25f85407ac3a0ca92df342be2bd53724feae3 (diff) | |
download | ffmpeg-streaming-c5c355546deeae961363aa6893f4e5b3a0b0f790.zip ffmpeg-streaming-c5c355546deeae961363aa6893f4e5b3a0b0f790.tar.gz |
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>
-rw-r--r-- | libswresample/swresample.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libswresample/swresample.c b/libswresample/swresample.c index 245a85b..d8a066f 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; |