commit afe251ab706f9a81a446ffb28dac43d8091f3a31
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Fri Feb 11 09:05:14 2022 +0000
Add patch for chrome
ffmpeg-support-chromium.patch | 42 ++++++++++++++++++++++++++++++++++++++++++
ffmpeg.spec | 7 +++++--
2 files changed, 47 insertions(+), 2 deletions(-)
---
diff --git a/ffmpeg-support-chromium.patch b/ffmpeg-support-chromium.patch
new file mode 100644
index 0000000..8e9a0ac
--- /dev/null
+++ b/ffmpeg-support-chromium.patch
@@ -0,0 +1,42 @@
+commit 95aab0fd83619408995720ce53d7a74790580220
+author liberato(a)chromium.org <liberato(a)chromium.org> Thu Jul 08 02:01:22 2021
+committer liberato(a)chromium.org <liberato(a)chromium.org> Thu Jul 08 02:01:22 2021
+tree ac725b5e2c548c8142aa7096d8184d87d3876a49
+parent e073b7a22e4993e0a7cab80a42a21524e5349f95
+
+Add av_stream_get_first_dts for Chromium
+
+diff --git a/libavformat/avformat.h b/libavformat/avformat.h
+index cd7b0d9..b4a6dce 100644
+--- a/libavformat/avformat.h
++++ b/libavformat/avformat.h
+@@ -1010,6 +1010,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 --git a/libavformat/utils.c b/libavformat/utils.c
+index de7580c..0ef0fe5 100644
+--- a/libavformat/utils.c
++++ b/libavformat/utils.c
+@@ -121,6 +121,13 @@
+ return AV_NOPTS_VALUE;
+ }
+
++// 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;
+
diff --git a/ffmpeg.spec b/ffmpeg.spec
index dc8f97c..a17b7d4 100644
--- a/ffmpeg.spec
+++ b/ffmpeg.spec
@@ -121,7 +121,7 @@ ExclusiveArch: armv7hnl
Summary: Digital VCR and streaming server
Name: ffmpeg%{?flavor}
Version: 5.0
-Release: 2%{?date:.%{?date}%{?date:git}%{?rel}}%{?dist}
+Release: 3%{?date:.%{?date}%{?date:git}%{?rel}}%{?dist}
License: %{ffmpeg_license}
URL:
http://ffmpeg.org/
%if 0%{?date}
@@ -130,7 +130,7 @@ Source0: ffmpeg-%{?branch}%{date}.tar.bz2
Source0:
http://ffmpeg.org/releases/ffmpeg-%{version}.tar.xz
%endif
Patch0: fix-vmaf-model-path.patch
-# upstream asm commits
+Patch1: ffmpeg-support-chromium.patch
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
%{?_with_cuda:BuildRequires: cuda-minimal-build-%{_cuda_version_rpm} cuda-drivers-devel}
%{?_with_cuda:%{?!_with_cuda_nvcc:BuildRequires: clang}}
@@ -488,6 +488,9 @@ install -pm755 tools/qt-faststart %{buildroot}%{_bindir}
%changelog
+* Fri Feb 11 2022 Leigh Scott <leigh123linux(a)gmail.com> - 5.0-3
+- Add patch for chrome
+
* Fri Feb 04 2022 Leigh Scott <leigh123linux(a)gmail.com> - 5.0-2
- rebuilt