summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2016-05-14 13:45:05 +0200
committerAnton Khirnov <anton@khirnov.net>2016-05-16 10:31:26 +0200
commit31f6a4b4b83aca1d73f3cfc99ce2b39331970bf3 (patch)
tree704c2dc6ed2c0243ea9bcd821e6036747068ab34 /libavcodec
parent2fb1d17a5a6b6ff8da2434cde0fda821f06f608c (diff)
lavc: mark the old audio/video encoding API as deprecated
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/avcodec.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 8e97c977b6..bb545651ae 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -4620,7 +4620,10 @@ AVCodec *avcodec_find_encoder_by_name(const char *name);
* value of got_packet_ptr is undefined and should
* not be used.
* @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,
const AVFrame *frame, int *got_packet_ptr);
@@ -4656,7 +4659,10 @@ int avcodec_encode_audio2(AVCodecContext *avctx, AVPacket *avpkt,
* value of got_packet_ptr is undefined and should
* not be used.
* @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,
const AVFrame *frame, int *got_packet_ptr);