From ff3f70001340f92750f88bfef88b4d90053aaf31 Mon Sep 17 00:00:00 2001 From: stefano Date: Sat, 11 Apr 2009 21:14:29 +0000 Subject: [PATCH] Fix documentation for avcodec_encode_audio(), in the case of PCM audio the output buffer size may be less than FF_MIN_BUFFER_SIZE. Patch by John Fletcher john.surname AT rd . bbc . co . uk. git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18449 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b --- libavcodec/avcodec.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index cb64d82f9..8edcc0134 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -3223,6 +3223,9 @@ int avcodec_parse_frame(AVCodecContext *avctx, uint8_t **pdata, * stored in output buffer \p buf. * * @note The output buffer should be at least \c FF_MIN_BUFFER_SIZE bytes large. + * However, for PCM audio the user will know how much space is needed + * because it depends on the value passed in \p buf_size as described + * below. In that case a lower value can be used. * * @param avctx the codec context * @param[out] buf the output buffer -- 2.39.2