]> git.sesse.net Git - ffmpeg/commitdiff
lavc: mark the old audio/video encoding API as deprecated
authorAnton Khirnov <anton@khirnov.net>
Sat, 14 May 2016 11:45:05 +0000 (13:45 +0200)
committerAnton Khirnov <anton@khirnov.net>
Mon, 16 May 2016 08:31:26 +0000 (10:31 +0200)
libavcodec/avcodec.h

index 8e97c977b68922efa64f1db9b5b998350cdaae87..bb545651ae99c59d2210ce9ffce4aaae391e840f 100644 (file)
@@ -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);