summaryrefslogtreecommitdiff
path: root/libavutil/frame.h
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2021-11-25 18:26:20 +0100
committerLynne <dev@lynne.ee>2021-12-03 22:41:00 +0100
commitb236ef0a594e20038b4045e2fecd414f1886d212 (patch)
treeb67579c48cb41c9e86e1624b0996f672ffe4ee64 /libavutil/frame.h
parent03ab1de429a43a99c6de0c0d6ec1d275349dc133 (diff)
lavu/avframe: add a time_base field
This adds a time_base field to AVFrame, as an analogue to the AVPacket.time_base field.
Diffstat (limited to 'libavutil/frame.h')
-rw-r--r--libavutil/frame.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavutil/frame.h b/libavutil/frame.h
index 753234792e..882b5afbde 100644
--- a/libavutil/frame.h
+++ b/libavutil/frame.h
@@ -422,6 +422,14 @@ typedef struct AVFrame {
int64_t pkt_dts;
/**
+ * Time base for the timestamps in this frame.
+ * In the future, this field may be set on frames output by decoders or
+ * filters, but its value will be by default ignored on input to encoders
+ * or filters.
+ */
+ AVRational time_base;
+
+ /**
* picture number in bitstream order
*/
int coded_picture_number;