You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
da9587952a8 (Michael Niedermayer 2012-04-26 01:35:22 +0200 127) int filter_size; /**< length of each FIR filter in the resampling filterbank relative to the cutoff frequency */
When calculating the number of samples that
AudioResampler::pop
will return, the filter size must be taken into account:avcpp/src/audioresampler.cpp
Line 209 in c3311e6
libswresample uses a filter and needs a number of bytes after the end of the sample to be able to resample - 16 in my case.
Otherwise, it risks returning partial frames.
The total value is available in
SwrContext->filter_size
, the number of samples needed is half that.Ref: https://stackoverflow.com/questions/39587839/libswresample-swr-convert-not-producing-enough-samples
The text was updated successfully, but these errors were encountered: