1 diff '--color=auto' -rupN ffmpeg.orig/libavformat/avformat.h ffmpeg/libavformat/avformat.h
2 --- ffmpeg.orig/libavformat/avformat.h 2022-08-19 17:42:47.323422603 +0200
3 +++ ffmpeg/libavformat/avformat.h 2022-08-19 17:42:51.347130436 +0200
4 @@ -1128,6 +1128,10 @@ struct AVCodecParserContext *av_stream_g
6 int64_t av_stream_get_end_pts(const AVStream *st);
8 +// Chromium: We use the internal field first_dts vvv
9 +int64_t av_stream_get_first_dts(const AVStream *st);
10 +// Chromium: We use the internal field first_dts ^^^
12 #define AV_PROGRAM_RUNNING 1
15 diff '--color=auto' -rupN ffmpeg.orig/libavformat/mux_utils.c ffmpeg/libavformat/mux_utils.c
16 --- ffmpeg.orig/libavformat/mux_utils.c 2022-08-19 17:42:47.346758108 +0200
17 +++ ffmpeg/libavformat/mux_utils.c 2022-08-19 17:47:28.549589002 +0200
18 @@ -37,6 +37,13 @@ int64_t av_stream_get_end_pts(const AVSt
19 return AV_NOPTS_VALUE;
22 +// Chromium: We use the internal field first_dts vvv
23 +int64_t av_stream_get_first_dts(const AVStream *st)
25 + return cffstream(st)->first_dts;
27 +// Chromium: We use the internal field first_dts ^^^
29 int avformat_query_codec(const AVOutputFormat *ofmt, enum AVCodecID codec_id,