lavu/frame: deprecate reordered_opaque

It is only used in libavcodec, where it's been superseded by
AV_CODEC_CAP_COPY_OPAQUE.
This commit is contained in:
Anton Khirnov
2023-01-31 12:27:28 +01:00
parent d02340b9e3
commit bdc76f467f
15 changed files with 108 additions and 5 deletions

View File

@@ -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;