lavu/frame: add a duration field to AVFrame

The only duration field currently present in AVFrame is pkt_duration,
which is semantically restricted to those frames that are output by
decoders.

Add a new field that stores the frame's duration without regard for how
that frame was produced. Deprecate pkt_duration.
This commit is contained in:
Anton Khirnov
2022-07-11 10:04:17 +02:00
parent 0a6bb7da55
commit 4397f9a5a0
4 changed files with 25 additions and 1 deletions

View File

@@ -14,6 +14,9 @@ libavutil: 2021-04-27
API changes, most recent first:
2022-07-xx - xxxxxxxxxx - lavu 57.30.100 - frame.h
Add AVFrame.duration, deprecate AVFrame.pkt_duration.
-------- 8< --------- FFmpeg 5.1 was cut here -------- 8< ---------
2022-06-12 - 7cae3d8b76 - lavf 59.25.100 - avio.h