History

avcodec: add a mention about get_encode_buffer in the old encode API doxy

Direct users to the callback that should be used to keep supporting user provided buffers with the new encode API.

James Almer committed 5 years ago

Commit 1af48851 parent 2aece141 file · +6 −2Browse files

Unified · Split

libavcodec/avcodec.h+6−2
@@ -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 failure3681 * @return 0 on success, negative error code on failure
3682 *3682 *
3683 * @deprecated use avcodec_send_frame()/avcodec_receive_packet() instead3683 * @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 */
3685attribute_deprecated3687attribute_deprecated
3686int avcodec_encode_audio2(AVCodecContext *avctx, AVPacket *avpkt,3688int 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 failure3722 * @return 0 on success, negative error code on failure
3721 *3723 *
3722 * @deprecated use avcodec_send_frame()/avcodec_receive_packet() instead3724 * @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 */
3724attribute_deprecated3728attribute_deprecated
3725int avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt,3729int avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t