2022-03-31 08:55:34 -06:00
|
|
|
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
|
2022-07-22 14:00:15 -06:00
|
|
|
index f12fa7d..0b9fd1f 100644
|
2022-03-31 08:55:34 -06:00
|
|
|
--- a/libavformat/avformat.h
|
|
|
|
+++ b/libavformat/avformat.h
|
2022-07-22 14:00:15 -06:00
|
|
|
@@ -1128,6 +1128,10 @@ struct AVCodecParserContext *av_stream_get_parser(const AVStream *s);
|
2022-03-31 08:55:34 -06:00
|
|
|
*/
|
|
|
|
int64_t av_stream_get_end_pts(const AVStream *st);
|
|
|
|
|
|
|
|
+// Chromium: We use the internal field first_dts vvv
|
|
|
|
+int64_t av_stream_get_first_dts(const AVStream *st);
|
|
|
|
+// Chromium: We use the internal field first_dts ^^^
|
|
|
|
+
|
|
|
|
#define AV_PROGRAM_RUNNING 1
|
|
|
|
|
|
|
|
/**
|
2022-07-22 14:00:15 -06:00
|
|
|
diff --git a/libavformat/mux_utils.c b/libavformat/mux_utils.c
|
|
|
|
index eb8ea3d..8420934 100644
|
|
|
|
--- a/libavformat/mux_utils.c
|
|
|
|
+++ b/libavformat/mux_utils.c
|
|
|
|
@@ -37,6 +37,13 @@ int64_t av_stream_get_end_pts(const AVStream *st)
|
2022-03-31 08:55:34 -06:00
|
|
|
return AV_NOPTS_VALUE;
|
|
|
|
}
|
|
|
|
|
|
|
|
+// Chromium: We use the internal field first_dts vvv
|
|
|
|
+int64_t av_stream_get_first_dts(const AVStream *st)
|
|
|
|
+{
|
|
|
|
+ return cffstream(st)->first_dts;
|
|
|
|
+}
|
|
|
|
+// Chromium: We use the internal field first_dts ^^^
|
|
|
|
+
|
2022-07-22 14:00:15 -06:00
|
|
|
int avformat_query_codec(const AVOutputFormat *ofmt, enum AVCodecID codec_id,
|
|
|
|
int std_compliance)
|
2022-03-31 08:55:34 -06:00
|
|
|
{
|