summaryrefslogtreecommitdiff
path: root/libavcodec/avcodec.h
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2007-11-28 12:41:35 +0000
committerDiego Biurrun <diego@biurrun.de>2007-11-28 12:41:35 +0000
commit0fe93f07ba53b53747d4c3a5599abe2f2224411c (patch)
tree50a68f02f16da713c5521ba5e2f326fdee23da5e /libavcodec/avcodec.h
parent1c715415e3ebd4eda8e00732d5a68e7ad02f0ef6 (diff)
Clarify documentation for avcodec_encode_audio.
patch by Stefano Sabatini, stefano.sabatini-lala poste it Originally committed as revision 11108 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r--libavcodec/avcodec.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 035728dd36..1c43ea4c6a 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -2674,8 +2674,10 @@ int avcodec_parse_frame(AVCodecContext *avctx, uint8_t **pdata,
* @param[out] buf the output buffer
* @param[in] buf_size the output buffer size
* @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.
* @return On error a negative value is returned, on succes zero or the number
- * of bytes used from the input buffer.
+ * of bytes used to encode the data read from the input buffer.
*/
int avcodec_encode_audio(AVCodecContext *avctx, uint8_t *buf, int buf_size,
const short *samples);