Skip to content
Snippets Groups Projects
Commit 31f6a4b4 authored by Anton Khirnov's avatar Anton Khirnov
Browse files

lavc: mark the old audio/video encoding API as deprecated

parent 2fb1d17a
No related branches found
No related tags found
No related merge requests found
...@@ -4620,7 +4620,10 @@ AVCodec *avcodec_find_encoder_by_name(const char *name); ...@@ -4620,7 +4620,10 @@ AVCodec *avcodec_find_encoder_by_name(const char *name);
* value of got_packet_ptr is undefined and should * value of got_packet_ptr is undefined and should
* not be used. * not be used.
* @return 0 on success, negative error code on failure * @return 0 on success, negative error code on failure
*
* @deprecated use avcodec_send_frame()/avcodec_receive_packet() instead
*/ */
attribute_deprecated
int avcodec_encode_audio2(AVCodecContext *avctx, AVPacket *avpkt, int avcodec_encode_audio2(AVCodecContext *avctx, AVPacket *avpkt,
const AVFrame *frame, int *got_packet_ptr); const AVFrame *frame, int *got_packet_ptr);
...@@ -4656,7 +4659,10 @@ int avcodec_encode_audio2(AVCodecContext *avctx, AVPacket *avpkt, ...@@ -4656,7 +4659,10 @@ int avcodec_encode_audio2(AVCodecContext *avctx, AVPacket *avpkt,
* value of got_packet_ptr is undefined and should * value of got_packet_ptr is undefined and should
* not be used. * not be used.
* @return 0 on success, negative error code on failure * @return 0 on success, negative error code on failure
*
* @deprecated use avcodec_send_frame()/avcodec_receive_packet() instead
*/ */
attribute_deprecated
int avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt, int avcodec_encode_video2(AVCodecContext *avctx, AVPacket *avpkt,
const AVFrame *frame, int *got_packet_ptr); const AVFrame *frame, int *got_packet_ptr);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment