changeset 6904:be1b0a6ee19a libavcodec

Clarify avcodec_encode_audio() vs. PCM audio. patch by Stefano Sabatini, stefano.sabatini-lala poste it
author diego
date Mon, 26 May 2008 23:19:26 +0000
parents 0f63fc62ea8b
children d163c4f3f4ab
files avcodec.h
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/avcodec.h	Mon May 26 23:14:25 2008 +0000
+++ b/avcodec.h	Mon May 26 23:19:26 2008 +0000
@@ -2750,6 +2750,8 @@
  * @param[in] samples the input buffer containing the samples
  * The number of samples read from this buffer is frame_size*channels,
  * both of which are defined in \p avctx.
+ * For PCM audio the number of samples read from \p samples is equal to
+ * \p buf_size * input_sample_size / output_sample_size.
  * @return On error a negative value is returned, on success zero or the number
  * of bytes used to encode the data read from the input buffer.
  */