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
36803680 * not be used.
36813681 * @return 0 on success, negative error code on failure
36823682 *
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.
36843686 */
36853687 attribute_deprecated
36863688 int avcodec_encode_audio2(AVCodecContext *avctx, AVPacket *avpkt,
@@ -3719,7 +3721,9 @@ int avcodec_encode_audio2(AVCodecContext *avctx, AVPacket *avpkt, · 32 unmodified lines
37193721 * not be used.
37203722 * @return 0 on success, negative error code on failure
37213723 *
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.
37233727 */
37243728 attribute_deprecated
37253729 int 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