aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/internal.h
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2021-06-05 11:12:03 -0300
committerJames Almer <jamrial@gmail.com>2021-06-09 13:55:25 -0300
commit591b88e6787c4e678237f02a50421d101abd25c2 (patch)
tree129253009d5179d64b706069237bc3f8659e3eea /libavformat/internal.h
parent39affa5f8e70fb364d197242a8c11703d593f012 (diff)
downloadffmpeg-591b88e6787c4e678237f02a50421d101abd25c2.tar.gz
avformat: move AVStream.{first,cur}_dts to AVStreamInternal
They are private fields, no reason to have them exposed in a public header. Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/internal.h')
-rw-r--r--libavformat/internal.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/libavformat/internal.h b/libavformat/internal.h
index 9882454d59..fee70e8e3d 100644
--- a/libavformat/internal.h
+++ b/libavformat/internal.h
@@ -389,6 +389,17 @@ struct AVStreamInternal {
* 0 means unknown
*/
int stream_identifier;
+
+ // Timestamp generation support:
+ /**
+ * Timestamp corresponding to the last dts sync point.
+ *
+ * Initialized when AVCodecParserContext.dts_sync_point >= 0 and
+ * a DTS is received from the underlying container. Otherwise set to
+ * AV_NOPTS_VALUE by default.
+ */
+ int64_t first_dts;
+ int64_t cur_dts;
};
void avpriv_stream_set_need_parsing(AVStream *st, enum AVStreamParseType type);