From 22960783978d9e0b6d4a4ed21f503bd24662aa7e Mon Sep 17 00:00:00 2001 From: Marton Balint Date: Sat, 28 Jan 2023 18:36:22 +0100 Subject: 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 --- fftools/ffprobe.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'fftools/ffprobe.c') 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); -- cgit v1.2.1