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 /fftools | |
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 'fftools')
-rw-r--r-- | fftools/ffprobe.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c index f5ac5c1554..af927cb084 100644 --- a/fftools/ffprobe.c +++ b/fftools/ffprobe.c @@ -2618,8 +2618,12 @@ static void show_frame(WriterContext *w, AVFrame *frame, AVStream *stream, print_str_opt("sample_aspect_ratio", "N/A"); } print_fmt("pict_type", "%c", av_get_picture_type_char(frame->pict_type)); +#if LIBAVUTIL_VERSION_MAJOR < 59 + AV_NOWARN_DEPRECATED( print_int("coded_picture_number", frame->coded_picture_number); print_int("display_picture_number", frame->display_picture_number); + ) +#endif print_int("interlaced_frame", frame->interlaced_frame); print_int("top_field_first", frame->top_field_first); print_int("repeat_pict", frame->repeat_pict); |