SHA256
1
0
forked from pool/ffmpeg-5

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
This commit is contained in:
Jan Engelhardt 2022-07-23 17:14:53 +00:00 committed by Git OBS Bridge
parent 2160af4bb1
commit 06ee40c891
2 changed files with 15 additions and 10 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Jul 23 15:29:58 UTC 2022 - Callum Farmer <gmbr3@opensuse.org>
- Update ffmpeg-chromium.patch from upstream
------------------------------------------------------------------- -------------------------------------------------------------------
Sat Jul 23 08:35:20 UTC 2022 - Jan Engelhardt <jengelh@inai.de> Sat Jul 23 08:35:20 UTC 2022 - Jan Engelhardt <jengelh@inai.de>

View File

@ -8,7 +8,7 @@ Add av_stream_get_first_dts for Chromium
--- ---
libavformat/avformat.h | 4 ++++ libavformat/avformat.h | 4 ++++
libavformat/demux_utils.c | 7 +++++++ libavformat/utils.c | 7 +++++++
2 files changed, 11 insertions(+) 2 files changed, 11 insertions(+)
Index: ffmpeg-5.1/libavformat/avformat.h Index: ffmpeg-5.1/libavformat/avformat.h
@ -26,13 +26,13 @@ Index: ffmpeg-5.1/libavformat/avformat.h
#define AV_PROGRAM_RUNNING 1 #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.orig/libavformat/utils.c
+++ ffmpeg-5.1/libavformat/demux_utils.c +++ ffmpeg-5.1/libavformat/utils.c
@@ -29,6 +29,13 @@ @@ -121,6 +121,13 @@
#include "demux.h" return ff_mutex_unlock(&avformat_mutex) ? -1 : 0;
#include "internal.h" }
+// Chromium: We use the internal field first_dts vvv +// Chromium: We use the internal field first_dts vvv
+int64_t av_stream_get_first_dts(const AVStream *st) +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 ^^^ +// Chromium: We use the internal field first_dts ^^^
+ +
struct AVCodecParserContext *av_stream_get_parser(const AVStream *st) /* an arbitrarily chosen "sane" max packet size -- 50M */
{ #define SANE_CHUNK_SIZE (50000000)
return cffstream(st)->parser;