diff options
author | Anton Khirnov <anton@khirnov.net> | 2023-01-31 12:27:28 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-02-04 13:40:20 +0100 |
commit | bdc76f467f5caaa15b3bd11cbe6c52cc8f2f45b1 (patch) | |
tree | bd2d15177f5ffc9681d609be283826eaa721b041 /libavcodec/decode.c | |
parent | d02340b9e3e72f401cddbeb3bcc3cb584902b886 (diff) | |
download | ffmpeg-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/decode.c')
-rw-r--r-- | libavcodec/decode.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/decode.c b/libavcodec/decode.c index 17b398e933..03ae27ecdf 100644 --- a/libavcodec/decode.c +++ b/libavcodec/decode.c @@ -1357,7 +1357,11 @@ int ff_decode_frame_props(AVCodecContext *avctx, AVFrame *frame) return ret; frame->pkt_size = (int)(intptr_t)pkt->opaque; } +#if FF_API_REORDERED_OPAQUE +FF_DISABLE_DEPRECATION_WARNINGS frame->reordered_opaque = avctx->reordered_opaque; +FF_ENABLE_DEPRECATION_WARNINGS +#endif if (frame->color_primaries == AVCOL_PRI_UNSPECIFIED) frame->color_primaries = avctx->color_primaries; |