summaryrefslogtreecommitdiff
path: root/libavcodec/encode.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-01-25 12:03:44 +0100
committerAnton Khirnov <anton@khirnov.net>2021-01-26 17:05:58 +0100
commit9e30859cb60b915f237581e3ce91b0d31592edc0 (patch)
tree273bc816c6712a7a32a16b4354d5880412ea2575 /libavcodec/encode.c
parent25f4304ebbf96c7ae2952d72b04ad244f8d96334 (diff)
lavc: shedule old encoding/decoding API for removal
It has been deprecated for 4 years and certain new codecs do not work with it. Also include AVCodecContext.refcounted_frames, as it has no effect with the new API.
Diffstat (limited to 'libavcodec/encode.c')
-rw-r--r--libavcodec/encode.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/encode.c b/libavcodec/encode.c
index 2e540baf37..29f41c3f92 100644
--- a/libavcodec/encode.c
+++ b/libavcodec/encode.c
@@ -356,6 +356,7 @@ int attribute_align_arg avcodec_receive_packet(AVCodecContext *avctx, AVPacket *
return 0;
}
+#if FF_API_OLD_ENCDEC
static int compat_encode(AVCodecContext *avctx, AVPacket *avpkt,
int *got_packet, const AVFrame *frame)
{
@@ -456,3 +457,4 @@ int attribute_align_arg avcodec_encode_video2(AVCodecContext *avctx,
return ret;
}
+#endif