swr: move compensation_distance handling to swri_resample caller.
authorRonald S. Bultje <rsbultje@gmail.com>
Tue, 27 May 2014 12:39:12 +0000 (08:39 -0400)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 2 Jun 2014 13:06:24 +0000 (15:06 +0200)
commitcdfd9717edac118968e63e6f83c3e45a7e337833
tree7e3a0b8f80e11182ccb6b459168f2d235d672d27
parentbfb3ed1a9d5dafdc185080fdd88d02ff7221d30a
swr: move compensation_distance handling to swri_resample caller.

I think there's an off-by-one in terms of the switchpoint where we
switch from dst_incr to ideal_dst_incr, I don't think that's a massive
issue, but just be aware of that. It's probably trivial to prevent but
I don't care.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
I could not reproduce any off by 1 error, results are bit exact (michael)
libswresample/resample.c
libswresample/resample_template.c