[FFmpeg-cvslog] swr-doxy: elaborate on swr_get_delay() and the timebase

Michael Niedermayer git at videolan.org
Tue Nov 20 20:06:29 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Nov 20 20:05:08 2012 +0100| [156a75a4594e0e9fd7fdd29912d2c14bb9492865] | committer: Michael Niedermayer

swr-doxy: elaborate on swr_get_delay() and the timebase

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libswresample/swresample.h |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libswresample/swresample.h b/libswresample/swresample.h
index 071db42..ff79f39 100644
--- a/libswresample/swresample.h
+++ b/libswresample/swresample.h
@@ -256,6 +256,10 @@ int swr_inject_silence(struct SwrContext *s, int count);
  * Swresample can buffer data if more input has been provided than available
  * output space, also converting between sample rates needs a delay.
  * This function returns the sum of all such delays.
+ * The exact delay is not neccessarily an integer value in either input or
+ * output sample rate. Especially when downsampling by a large value, the
+ * output sample rate may be a poor choice to represent the delay, similarly
+ * for upsampling and the input sample rate.
  *
  * @param s     swr context
  * @param base  timebase in which the returned delay will be



More information about the ffmpeg-cvslog mailing list