summaryrefslogtreecommitdiff
path: root/libavcodec/avcodec.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-07-12 11:25:09 +0200
committerAnton Khirnov <anton@khirnov.net>2023-01-29 09:23:15 +0100
commita1a80f2e64f31755be74d8cc7afb1aafe000c29a (patch)
treed870fa655bc8c6787f5c3915224574fb8a9d055a /libavcodec/avcodec.h
parent8d73f3ce56fc90d840c83e8ab3463474d2d38046 (diff)
lavc/encode: pass through frame durations to encoded packets
The generic code can only handle the no-delay case. Encoders with delay need to be handled individually, which will be done in the following commits.
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r--libavcodec/avcodec.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 832b9d9575..90b437ccbe 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -268,6 +268,13 @@ typedef struct RcOverride{
*/
#define AV_CODEC_FLAG_COPY_OPAQUE (1 << 7)
/**
+ * Signal to the encoder that the values of AVFrame.duration are valid and
+ * should be used (typically for transferring them to output packets).
+ *
+ * If this flag is not set, frame durations are ignored.
+ */
+#define AV_CODEC_FLAG_FRAME_DURATION (1 << 8)
+/**
* Use internal 2pass ratecontrol in first pass mode.
*/
#define AV_CODEC_FLAG_PASS1 (1 << 9)