[FFmpeg-devel] [PATCH] swresample/soxr: never return negative delay
nfxjfg at googlemail.com
Fri Jun 5 09:24:59 CEST 2015
On Fri, 5 Jun 2015 01:03:13 +0200
Michael Niedermayer <michaelni at gmx.at> wrote:
> On Thu, Jun 04, 2015 at 07:54:15PM +0200, wm4 wrote:
> > This makes no sense in this context, and can cause swr_get_out_samples()
> > and swr_get_delay() negative numbers that are not error codes.
> > ---
> > libswresample/soxr_resample.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> is there an actual case where a negative value occurs or is this
> "just to be sure" ?
> also ive added the soxr_resample author to CC, he might want to
This actually happens at the end of the stream (when you stop writing
data, and just flush out the remaining buffer).
More information about the ffmpeg-devel