diff options
author | Marton Balint <cus@passwd.hu> | 2023-01-28 18:36:22 +0100 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2023-02-13 00:37:50 +0100 |
commit | 22960783978d9e0b6d4a4ed21f503bd24662aa7e (patch) | |
tree | 676c54c183aec3576b70819c4e4c97f857c8bfab /libavutil/frame.c | |
parent | 8e2c1249044e9207c88c13764797676d403e3f57 (diff) | |
download | ffmpeg-22960783978d9e0b6d4a4ed21f503bd24662aa7e.tar.gz |
avutil/frame: deprecate AVFrame.coded_picture_number and display_picture_number
Their usefulness is questionable, very few decoders set them, and their type
should have been int64_t. A replacement field can be added later if a valid use
case is found.
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavutil/frame.c')
-rw-r--r-- | libavutil/frame.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavutil/frame.c b/libavutil/frame.c index 4d89c75dc8..9545477acc 100644 --- a/libavutil/frame.c +++ b/libavutil/frame.c @@ -294,8 +294,12 @@ FF_ENABLE_DEPRECATION_WARNINGS #endif dst->quality = src->quality; dst->best_effort_timestamp = src->best_effort_timestamp; +#if FF_API_FRAME_PICTURE_NUMBER +FF_DISABLE_DEPRECATION_WARNINGS dst->coded_picture_number = src->coded_picture_number; dst->display_picture_number = src->display_picture_number; +FF_ENABLE_DEPRECATION_WARNINGS +#endif dst->flags = src->flags; dst->decode_error_flags = src->decode_error_flags; dst->color_primaries = src->color_primaries; |