Direct users to the callback that should be used to keep supporting user provided buffers with the new encode API.
Showing the changes to libavcodec/avcodec.h (1 of 1 file). Show all
Unified · Split
| @@ -3680,7 +3680,9 @@ void av_parser_close(AVCodecParserContext *s); · 3679 unmodified lines | |||
| 3680 | * not be used. | 3680 | * not be used. |
| 3681 | * @return 0 on success, negative error code on failure | 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 | attribute_deprecated | 3687 | attribute_deprecated |
| 3686 | int avcodec_encode_audio2(AVCodecContext *avctx, AVPacket *avpkt, | 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 | * not be used. | 3721 | * not be used. |
| 3720 | * @return 0 on success, negative error code on failure | 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 | attribute_deprecated | 3728 | attribute_deprecated |
| 3725 | int avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt, | 3729 | int avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt, |