-
Notifications
You must be signed in to change notification settings - Fork 4
/
ffmpeg-chromium.patch
31 lines (26 loc) · 1.13 KB
/
ffmpeg-chromium.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
diff -Naur ffmpeg-7.0.2.old/libavformat/avformat.h ffmpeg-7.0.2/libavformat/avformat.h
--- ffmpeg-7.0.2.old/libavformat/avformat.h 2024-08-29 08:36:42.628111665 +0200
+++ ffmpeg-7.0.2/libavformat/avformat.h 2024-08-29 08:36:43.471120368 +0200
@@ -1170,6 +1170,10 @@
struct AVCodecParserContext *av_stream_get_parser(const AVStream *s);
+// 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
/**
diff -Naur ffmpeg-7.0.2.old/libavformat/utils.c ffmpeg-7.0.2/libavformat/utils.c
--- ffmpeg-7.0.2.old/libavformat/utils.c 2024-08-29 08:36:42.632111707 +0200
+++ ffmpeg-7.0.2/libavformat/utils.c 2024-08-29 08:36:43.472120378 +0200
@@ -56,6 +56,13 @@
return ff_mutex_unlock(&avformat_mutex) ? -1 : 0;
}
+// 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 ^^^
+
/* an arbitrarily chosen "sane" max packet size -- 50M */
#define SANE_CHUNK_SIZE (50000000)