diff options
author | Marton Balint <cus@passwd.hu> | 2024-12-08 21:51:20 +0100 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2025-01-05 22:25:29 +0100 |
commit | 19c95ecbff84eebca254d200c941ce07868ee707 (patch) | |
tree | ffef3b8c430494a24af66122e6f59d8d0c47a2f9 /libavformat/dump.c | |
parent | 8a29b4e38d515d4b4b8f30f782497809a54dd0fb (diff) | |
download | ffmpeg-19c95ecbff84eebca254d200c941ce07868ee707.tar.gz |
avcodec: deprecate AVCodecContext properties
These properties are unreliable because they depend on the frames decoded so
far, users should check directly the presence of the decoded AVFrame side data
or AVFrame flags.
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavformat/dump.c')
-rw-r--r-- | libavformat/dump.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/dump.c b/libavformat/dump.c index 3db11e010c..3d37623a41 100644 --- a/libavformat/dump.c +++ b/libavformat/dump.c @@ -620,7 +620,11 @@ static void dump_stream_format(const AVFormatContext *ic, int i, // Fields which are missing from AVCodecParameters need to be taken from the AVCodecContext if (sti->avctx) { +#if FF_API_CODEC_PROPS +FF_DISABLE_DEPRECATION_WARNINGS avctx->properties = sti->avctx->properties; +FF_ENABLE_DEPRECATION_WARNINGS +#endif avctx->codec = sti->avctx->codec; avctx->qmin = sti->avctx->qmin; avctx->qmax = sti->avctx->qmax; |