[FFmpeg-devel] [PATCH] swresample: make swr_get_out_samples() work with all resamplers

wm4 nfxjfg at googlemail.com
Tue Jun 16 10:39:32 CEST 2015


On Tue, 16 Jun 2015 01:43:59 +0200
Michael Niedermayer <michaelni at gmx.at> wrote:

> On Thu, Jun 04, 2015 at 07:19:25PM +0200, wm4 wrote:
> > Making it fail if e.g. soxr is used makes the function completely
> > useless.
> > ---
> >  libswresample/swresample.c | 10 +++++++---
> >  1 file changed, 7 insertions(+), 3 deletions(-)
> 
> this together with the other commit results in an insufficent number
> of samples being returned for some inputs
> 
> an example of this is
> ./ffmpeg -f s32le -acodec pcm_s32le -ar 44100 -ac 1 -i lena.pnm -af aresample=osr=96000:resampler=soxr:cutoff=.993 -f null -
> 
> iam also CCing, Rob Sykes, who is also working on this
> 

That's bad, because AFAIK I used calculations that were suggested in
the public API.


More information about the ffmpeg-devel mailing list