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/options.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/options.c')
-rw-r--r-- | libavcodec/options.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/options.c b/libavcodec/options.c index 2e05d29e1e..9090c94e9c 100644 --- a/libavcodec/options.c +++ b/libavcodec/options.c @@ -124,7 +124,11 @@ static int init_context_defaults(AVCodecContext *s, const AVCodec *codec) s->sw_pix_fmt = AV_PIX_FMT_NONE; s->sample_fmt = AV_SAMPLE_FMT_NONE; +#if FF_API_REORDERED_OPAQUE +FF_DISABLE_DEPRECATION_WARNINGS s->reordered_opaque = AV_NOPTS_VALUE; +FF_ENABLE_DEPRECATION_WARNINGS +#endif if(codec && codec2->priv_data_size){ s->priv_data = av_mallocz(codec2->priv_data_size); if (!s->priv_data) |