aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/encode.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-01-31 12:27:28 +0100
committerAnton Khirnov <anton@khirnov.net>2023-02-04 13:40:20 +0100
commitbdc76f467f5caaa15b3bd11cbe6c52cc8f2f45b1 (patch)
treebd2d15177f5ffc9681d609be283826eaa721b041 /libavcodec/encode.c
parentd02340b9e3e72f401cddbeb3bcc3cb584902b886 (diff)
downloadffmpeg-bdc76f467f5caaa15b3bd11cbe6c52cc8f2f45b1.tar.gz
lavu/frame: deprecate reordered_opaque
It is only used in libavcodec, where it's been superseded by AV_CODEC_CAP_COPY_OPAQUE.
Diffstat (limited to 'libavcodec/encode.c')
-rw-r--r--libavcodec/encode.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/encode.c b/libavcodec/encode.c
index c92beaf8e1..b0a9625ca9 100644
--- a/libavcodec/encode.c
+++ b/libavcodec/encode.c
@@ -193,7 +193,11 @@ int ff_encode_get_frame(AVCodecContext *avctx, AVFrame *frame)
int ff_encode_reordered_opaque(AVCodecContext *avctx,
AVPacket *pkt, const AVFrame *frame)
{
+#if FF_API_REORDERED_OPAQUE
+FF_DISABLE_DEPRECATION_WARNINGS
avctx->reordered_opaque = frame->reordered_opaque;
+FF_ENABLE_DEPRECATION_WARNINGS
+#endif
if (avctx->flags & AV_CODEC_FLAG_COPY_OPAQUE) {
int ret = av_buffer_replace(&pkt->opaque_ref, frame->opaque_ref);