mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-26 09:12:33 +00:00
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. Reviewed-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
2aece147d5
commit
1af4885014
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user