File ffmpeg-chromium.patch of Package ffmpeg-7
47
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
---
10
libavformat/avformat.h | 4 ++++
11
libavformat/utils.c | 7 +++++++
12
2 files changed, 11 insertions(+)
13
14
Index: ffmpeg-7.1/libavformat/avformat.h
15
===================================================================
16
--- ffmpeg-7.1.orig/libavformat/avformat.h
17
+++ ffmpeg-7.1/libavformat/avformat.h
18
19
20
struct AVCodecParserContext *av_stream_get_parser(const AVStream *s);
21
22
+// Chromium: We use the internal field first_dts vvv
23
+int64_t av_stream_get_first_dts(const AVStream *st);
24
+// Chromium: We use the internal field first_dts ^^^
25
+
26
#define AV_PROGRAM_RUNNING 1
27
28
/**
29
Index: ffmpeg-7.1/libavformat/utils.c
30
===================================================================
31
--- ffmpeg-7.1.orig/libavformat/utils.c
32
+++ ffmpeg-7.1/libavformat/utils.c
33
34
* various utility functions for use within FFmpeg
35
*/
36
37
+// Chromium: We use the internal field first_dts vvv
38
+int64_t av_stream_get_first_dts(const AVStream *st)
39
+{
40
+ return cffstream(st)->first_dts;
41
+}
42
+// Chromium: We use the internal field first_dts ^^^
43
+
44
/* an arbitrarily chosen "sane" max packet size -- 50M */
45
#define SANE_CHUNK_SIZE (50000000)
46
47