summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-11-20 20:05:08 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-11-20 20:05:08 +0100
commit156a75a4594e0e9fd7fdd29912d2c14bb9492865 (patch)
tree98a1fef3627d0dd4603678d06c65f301e00f3bd6
parent7cca237ddd1f7c1367f6b05b4ddc1b42f4e2709b (diff)
downloadffmpeg-156a75a4594e0e9fd7fdd29912d2c14bb9492865.tar.gz
swr-doxy: elaborate on swr_get_delay() and the timebase
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libswresample/swresample.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libswresample/swresample.h b/libswresample/swresample.h
index 071db42a71..ff79f39137 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