summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMarton Balint <cus@passwd.hu>2023-01-28 18:36:22 +0100
committerMarton Balint <cus@passwd.hu>2023-02-13 00:37:50 +0100
commit22960783978d9e0b6d4a4ed21f503bd24662aa7e (patch)
tree676c54c183aec3576b70819c4e4c97f857c8bfab /doc
parent8e2c1249044e9207c88c13764797676d403e3f57 (diff)
downloadffmpeg-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 'doc')
-rw-r--r--doc/APIchanges4
-rw-r--r--doc/examples/demux_decode.c4
2 files changed, 6 insertions, 2 deletions
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 */