[FFmpeg-cvslog] lavr: document upper bound on number of output samples.

Anton Khirnov git at videolan.org
Tue Oct 30 15:16:37 CET 2012


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Sun Oct 28 22:52:55 2012 +0100| [dc5793062e7a0f6d195fc403d7ce242729b4ea4a] | committer: Anton Khirnov

lavr: document upper bound on number of output samples.

Signed-off-by: Anton Khirnov <anton at khirnov.net>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=dc5793062e7a0f6d195fc403d7ce242729b4ea4a
---

 libavresample/avresample.h |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavresample/avresample.h b/libavresample/avresample.h
index 87134b3..b0a9e24 100644
--- a/libavresample/avresample.h
+++ b/libavresample/avresample.h
@@ -265,6 +265,10 @@ int avresample_set_compensation(AVAudioResampleContext *avr, int sample_delta,
 /**
  * Convert input samples and write them to the output FIFO.
  *
+ * The upper bound on the number of output samples is given by
+ * avresample_available() + (avresample_get_delay() + number of input samples) *
+ * output sample rate / input sample rate.
+ *
  * The output data can be NULL or have fewer allocated samples than required.
  * In this case, any remaining samples not written to the output will be added
  * to an internal FIFO buffer, to be returned at the next call to this function



More information about the ffmpeg-cvslog mailing list