File ffmpeg-chromium.patch of Package ffmpeg-4
42
1
commit 95aab0fd83619408995720ce53d7a74790580220
2
author liberato@chromium.org <liberato@chromium.org> Thu Jul 08 02:01:22 2021
3
committer liberato@chromium.org <liberato@chromium.org> Thu Jul 08 02:01:22 2021
4
tree ac725b5e2c548c8142aa7096d8184d87d3876a49
5
parent e073b7a22e4993e0a7cab80a42a21524e5349f95
6
7
Add av_stream_get_first_dts for Chromium
8
9
Index: ffmpeg-4.4.2/libavformat/avformat.h
10
===================================================================
11
--- ffmpeg-4.4.2.orig/libavformat/avformat.h
12
+++ ffmpeg-4.4.2/libavformat/avformat.h
13
14
*/
15
int64_t av_stream_get_end_pts(const AVStream *st);
16
17
+// Chromium: We use the internal field first_dts vvv
18
+int64_t av_stream_get_first_dts(const AVStream *st);
19
+// Chromium: We use the internal field first_dts ^^^
20
+
21
#define AV_PROGRAM_RUNNING 1
22
23
/**
24
Index: ffmpeg-4.4.2/libavformat/utils.c
25
===================================================================
26
--- ffmpeg-4.4.2.orig/libavformat/utils.c
27
+++ ffmpeg-4.4.2/libavformat/utils.c
28
29
return AV_NOPTS_VALUE;
30
}
31
32
+// Chromium: We use the internal field first_dts vvv
33
+int64_t av_stream_get_first_dts(const AVStream *st)
34
+{
35
+ return st->first_dts;
36
+}
37
+// Chromium: We use the internal field first_dts ^^^
38
+
39
struct AVCodecParserContext *av_stream_get_parser(const AVStream *st)
40
{
41
return st->parser;
42