patched to add av_stream_get-first_dts function for chromium [release 5.0-2mamba;Mon Feb 21 2022]
This commit is contained in:
parent
a2c5c0ef57
commit
b2df42a978
44
ffmpeg-5.0-add-av_stream_get_first_dts-for-chromium.patch
Normal file
44
ffmpeg-5.0-add-av_stream_get_first_dts-for-chromium.patch
Normal file
@ -0,0 +1,44 @@
|
||||
From 95aab0fd83619408995720ce53d7a74790580220 Mon Sep 17 00:00:00 2001
|
||||
From: "liberato@chromium.org" <liberato@chromium.org>
|
||||
Date: Wed, 7 Jul 2021 19:01:22 -0700
|
||||
Subject: [PATCH] Add av_stream_get_first_dts for Chromium
|
||||
|
||||
[foutrelis: adjust for new FFStream struct replacing AVStreamInternal]
|
||||
---
|
||||
libavformat/avformat.h | 4 ++++
|
||||
libavformat/utils.c | 7 +++++++
|
||||
2 files changed, 11 insertions(+)
|
||||
|
||||
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
|
||||
index cd7b0d941c..b4a6dce885 100644
|
||||
--- a/libavformat/avformat.h
|
||||
+++ b/libavformat/avformat.h
|
||||
@@ -1010,6 +1010,10 @@ struct AVCodecParserContext *av_stream_get_parser(const AVStream *s);
|
||||
*/
|
||||
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 de7580c32d..0ef0fe530e 100644
|
||||
--- a/libavformat/utils.c
|
||||
+++ b/libavformat/utils.c
|
||||
@@ -121,6 +121,13 @@ int64_t av_stream_get_end_pts(const AVStream *st)
|
||||
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 st->internal->parser;
|
@ -5,7 +5,7 @@
|
||||
Name: ffmpeg
|
||||
Epoch: 1
|
||||
Version: 5.0
|
||||
Release: 1mamba
|
||||
Release: 2mamba
|
||||
Summary: Hyper fast MPEG1/MPEG4/H263/RV and AC3/MPEG audio encoder
|
||||
Group: System/Libraries
|
||||
Vendor: openmamba
|
||||
@ -17,6 +17,7 @@ Patch1: %{name}-0.4.9-pic.patch
|
||||
Patch2: %{name}-20080820svn-libx264.patch
|
||||
Patch3: %{name}-0.5-x264.patch
|
||||
Patch4: %{name}-0.11-install_url_h.patch
|
||||
Patch5: ffmpeg-5.0-add-av_stream_get_first_dts-for-chromium.patch
|
||||
License: LGPL, GPL
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
BuildRequires: glibc-devel
|
||||
@ -312,6 +313,7 @@ This is a virtual package that contains the dependencies necessary for installin
|
||||
%prep
|
||||
%setup -q -n ffmpeg-%{buildver}
|
||||
%patch4 -p1
|
||||
%patch5 -p1 -b .add-av_stream_get_first_dts-for-chromium
|
||||
|
||||
%build
|
||||
# configure not generated by autoconf
|
||||
@ -571,6 +573,9 @@ ln -s ../libavcodec.a %{buildroot}%{_libdir}/libavcodec/libavcodec.a
|
||||
%{_docdir}/ffmpeg/*
|
||||
|
||||
%changelog
|
||||
* Mon Feb 21 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 5.0-2mamba
|
||||
- patched to add av_stream_get-first_dts function for chromium
|
||||
|
||||
* Mon Jan 24 2022 Automatic Build System <autodist@mambasoft.it> 5.0-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user