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 --- doc/APIchanges | 4 ++++ doc/examples/demux_decode.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/APIchanges b/doc/APIchanges index f3ea960415..3ca724724b 100644 --- a/doc/APIchanges +++ b/doc/APIchanges @@ -2,6 +2,10 @@ The last version increases of all libraries were on 2023-02-09 API changes, most recent first: +2023-02-13 - xxxxxxxxxx - lavu 58.1.100 - frame.h + Deprecate AVFrame.coded_picture_number and display_picture_number. + Their usefulness is questionable and very few decoders set them. + 2023-02-13 - xxxxxxxxxx - lavc 60.2.100 - avcodec.h Add AVCodecContext.frame_num as a 64bit version of frame_number. Deprecate AVCodecContext.frame_number. diff --git a/doc/examples/demux_decode.c b/doc/examples/demux_decode.c index ebef7a6114..298a369f43 100644 --- a/doc/examples/demux_decode.c +++ b/doc/examples/demux_decode.c @@ -73,8 +73,8 @@ static int output_video_frame(AVFrame *frame) return -1; } - printf("video_frame n:%d coded_n:%d\n", - video_frame_count++, frame->coded_picture_number); + printf("video_frame n:%d\n", + video_frame_count++); /* copy decoded frame to destination buffer: * this is required since rawvideo expects non aligned data */ -- cgit v1.2.3