diff options
author | tytan652 | 2022-08-19 21:40:25 +0200 |
---|---|---|
committer | tytan652 | 2022-08-19 21:40:25 +0200 |
commit | 8326e359634202c539b18069b065c5012e6abd1a (patch) | |
tree | 902d67e49b2e2cb1a785fbcad35fb47515054f8e /add-av_stream_get_first_dts-for-chromium.patch | |
parent | 4fa1aa1f173064ebe747bb40e396567066f61771 (diff) | |
download | aur-8326e359634202c539b18069b065c5012e6abd1a.tar.gz |
build: Update to version 5.1
Diffstat (limited to 'add-av_stream_get_first_dts-for-chromium.patch')
-rw-r--r-- | add-av_stream_get_first_dts-for-chromium.patch | 28 |
1 files changed, 6 insertions, 22 deletions
diff --git a/add-av_stream_get_first_dts-for-chromium.patch b/add-av_stream_get_first_dts-for-chromium.patch index fb5589800d3d..bf1f212ca515 100644 --- a/add-av_stream_get_first_dts-for-chromium.patch +++ b/add-av_stream_get_first_dts-for-chromium.patch @@ -1,19 +1,6 @@ -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); +@@ -1128,6 +1128,10 @@ struct AVCodecParserContext *av_stream_get_parser(const AVStream *s); */ int64_t av_stream_get_end_pts(const AVStream *st); @@ -24,21 +11,18 @@ index cd7b0d941c..b4a6dce885 100644 #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; +@@ -55,6 +55,13 @@ int ff_unlock_avformat(void) + 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) +{ -+ return cffstream(st)->first_dts; ++ return ffstream(st)->first_dts; +} +// Chromium: We use the internal field first_dts ^^^ + - struct AVCodecParserContext *av_stream_get_parser(const AVStream *st) - { - return st->internal->parser; + /* an arbitrarily chosen "sane" max packet size -- 50M */ + #define SANE_CHUNK_SIZE (50000000) |