]> git.sesse.net Git - ffmpeg/commitdiff
avcodec: add a mention about get_encode_buffer in the old encode API doxy
authorJames Almer <jamrial@gmail.com>
Wed, 10 Mar 2021 01:24:16 +0000 (22:24 -0300)
committerJames Almer <jamrial@gmail.com>
Sun, 14 Mar 2021 16:37:01 +0000 (13:37 -0300)
Direct users to the callback that should be used to keep supporting user
provided buffers with the new encode API.

Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: James Almer <jamrial@gmail.com>
libavcodec/avcodec.h

index fbd480416086e5f1bd5a0a8cb9f83ce652ff2d6f..8a71c042308e37a89dbf357d8f9b276dd4ebcbf9 100644 (file)
@@ -3680,7 +3680,9 @@ void av_parser_close(AVCodecParserContext *s);
  *                            not be used.
  * @return          0 on success, negative error code on failure
  *
- * @deprecated use avcodec_send_frame()/avcodec_receive_packet() instead
+ * @deprecated use avcodec_send_frame()/avcodec_receive_packet() instead.
+ *             If allowed and required, set AVCodecContext.get_encode_buffer to
+ *             a custom function to pass user supplied output buffers.
  */
 attribute_deprecated
 int avcodec_encode_audio2(AVCodecContext *avctx, AVPacket *avpkt,
@@ -3719,7 +3721,9 @@ int avcodec_encode_audio2(AVCodecContext *avctx, AVPacket *avpkt,
  *                            not be used.
  * @return          0 on success, negative error code on failure
  *
- * @deprecated use avcodec_send_frame()/avcodec_receive_packet() instead
+ * @deprecated use avcodec_send_frame()/avcodec_receive_packet() instead.
+ *             If allowed and required, set AVCodecContext.get_encode_buffer to
+ *             a custom function to pass user supplied output buffers.
  */
 attribute_deprecated
 int avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt,