aboutsummaryrefslogtreecommitdiff
path: root/repos/extra/ffmpeg/ffmpeg-6.0-chromium_method-1.patch
diff options
context:
space:
mode:
authoremmett1 <emmett1.2miligrams@protonmail.com>2024-06-13 00:25:03 +0800
committeremmett1 <emmett1.2miligrams@protonmail.com>2024-06-13 00:25:03 +0800
commit239ced844ea434e623686094af3de168f90e4391 (patch)
tree541d2c575f3b3832ca1a3087bde3f65dc74a8f89 /repos/extra/ffmpeg/ffmpeg-6.0-chromium_method-1.patch
parent3f80bb67166389b3acabf8f024ee1ad1a4364c1f (diff)
downloadalicelinux-239ced844ea434e623686094af3de168f90e4391.tar.gz
alicelinux-239ced844ea434e623686094af3de168f90e4391.zip
repos updated
Diffstat (limited to 'repos/extra/ffmpeg/ffmpeg-6.0-chromium_method-1.patch')
-rw-r--r--repos/extra/ffmpeg/ffmpeg-6.0-chromium_method-1.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/repos/extra/ffmpeg/ffmpeg-6.0-chromium_method-1.patch b/repos/extra/ffmpeg/ffmpeg-6.0-chromium_method-1.patch
new file mode 100644
index 00000000..9aee44a5
--- /dev/null
+++ b/repos/extra/ffmpeg/ffmpeg-6.0-chromium_method-1.patch
@@ -0,0 +1,42 @@
+Submitted By: Marty Jack (martyj19 at comcast dot net)
+Date: 2022-07-23
+Initial Package Version: 5.1.0
+Origin: Rediffed from ffmpeg-5.0.1-api_addition-1.patch
+Upstream Status: Not accepted
+Description: The ffmpeg upstream is not willing to take this as a
+permanent fix and suggests that Chromium should change to keep the
+information locally to Chromium. Until that happens it appears
+that many distros are carrying this patch as a temporary
+expedient to allow building with system ffmpeg.
+
+diff -Naur ffmpeg-5.1.orig/libavformat/avformat.h ffmpeg-5.1/libavformat/avformat.h
+--- ffmpeg-5.1.orig/libavformat/avformat.h 2022-07-22 13:58:39.000000000 -0400
++++ ffmpeg-5.1/libavformat/avformat.h 2022-07-22 19:34:07.490051886 -0400
+@@ -1128,6 +1128,10 @@
+ */
+ 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
+
+ /**
+diff -Naur ffmpeg-5.1.orig/libavformat/demux_utils.c ffmpeg-5.1/libavformat/demux_utils.c
+--- ffmpeg-5.1.orig/libavformat/demux_utils.c 2022-07-22 13:58:39.000000000 -0400
++++ ffmpeg-5.1/libavformat/demux_utils.c 2022-07-22 19:36:39.646735587 -0400
+@@ -29,6 +29,13 @@
+ #include "demux.h"
+ #include "internal.h"
+
++// 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 ^^^
++
+ struct AVCodecParserContext *av_stream_get_parser(const AVStream *st)
+ {
+ return cffstream(st)->parser;