Direct users to the callback that should be used to keep supporting user provided buffers with the new encode API.
Unified · Split
| @@ -3680,7 +3680,9 @@ void av_parser_close(AVCodecParserContext *s); · 3679 unmodified lines | ||
| 3680 | 3680 | * not be used. |
| 3681 | 3681 | * @return 0 on success, negative error code on failure |
| 3682 | 3682 | * |
| 3683 | − * @deprecated use avcodec_send_frame()/avcodec_receive_packet() instead | |
| 3683 | + * @deprecated use avcodec_send_frame()/avcodec_receive_packet() instead. | |
| 3684 | + * If allowed and required, set AVCodecContext.get_encode_buffer to | |
| 3685 | + * a custom function to pass user supplied output buffers. | |
| 3684 | 3686 | */ |
| 3685 | 3687 | attribute_deprecated |
| 3686 | 3688 | int avcodec_encode_audio2(AVCodecContext *avctx, AVPacket *avpkt, |
| @@ -3719,7 +3721,9 @@ int avcodec_encode_audio2(AVCodecContext *avctx, AVPacket *avpkt, · 32 unmodified lines | ||
| 3719 | 3721 | * not be used. |
| 3720 | 3722 | * @return 0 on success, negative error code on failure |
| 3721 | 3723 | * |
| 3722 | − * @deprecated use avcodec_send_frame()/avcodec_receive_packet() instead | |
| 3724 | + * @deprecated use avcodec_send_frame()/avcodec_receive_packet() instead. | |
| 3725 | + * If allowed and required, set AVCodecContext.get_encode_buffer to | |
| 3726 | + * a custom function to pass user supplied output buffers. | |
| 3723 | 3727 | */ |
| 3724 | 3728 | attribute_deprecated |
| 3725 | 3729 | int avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt, |