From 06ee40c89169f89a23f86cc752ecd6902a0e5a4c07a9304680a35a3a8b2ab000 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sat, 23 Jul 2022 17:14:53 +0000 Subject: [PATCH] Accepting request 990819 from home:gmbr3:Active - Update ffmpeg-chromium.patch from upstream OBS-URL: https://build.opensuse.org/request/show/990819 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/ffmpeg-5?expand=0&rev=19 --- ffmpeg-5.changes | 5 +++++ ffmpeg-chromium.patch | 20 ++++++++++---------- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/ffmpeg-5.changes b/ffmpeg-5.changes index 7f0b619..2374c2a 100644 --- a/ffmpeg-5.changes +++ b/ffmpeg-5.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sat Jul 23 15:29:58 UTC 2022 - Callum Farmer + +- Update ffmpeg-chromium.patch from upstream + ------------------------------------------------------------------- Sat Jul 23 08:35:20 UTC 2022 - Jan Engelhardt diff --git a/ffmpeg-chromium.patch b/ffmpeg-chromium.patch index a626406..5c3fd3e 100644 --- a/ffmpeg-chromium.patch +++ b/ffmpeg-chromium.patch @@ -8,7 +8,7 @@ Add av_stream_get_first_dts for Chromium --- libavformat/avformat.h | 4 ++++ - libavformat/demux_utils.c | 7 +++++++ + libavformat/utils.c | 7 +++++++ 2 files changed, 11 insertions(+) Index: ffmpeg-5.1/libavformat/avformat.h @@ -26,13 +26,13 @@ Index: ffmpeg-5.1/libavformat/avformat.h #define AV_PROGRAM_RUNNING 1 /** -Index: ffmpeg-5.1/libavformat/demux_utils.c +Index: ffmpeg-5.1/libavformat/utils.c =================================================================== ---- ffmpeg-5.1.orig/libavformat/demux_utils.c -+++ ffmpeg-5.1/libavformat/demux_utils.c -@@ -29,6 +29,13 @@ - #include "demux.h" - #include "internal.h" +--- ffmpeg-5.1.orig/libavformat/utils.c ++++ ffmpeg-5.1/libavformat/utils.c +@@ -121,6 +121,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) @@ -41,6 +41,6 @@ Index: ffmpeg-5.1/libavformat/demux_utils.c +} +// Chromium: We use the internal field first_dts ^^^ + - struct AVCodecParserContext *av_stream_get_parser(const AVStream *st) - { - return cffstream(st)->parser; + /* an arbitrarily chosen "sane" max packet size -- 50M */ + #define SANE_CHUNK_SIZE (50000000) +