summaryrefslogtreecommitdiffstats
path: root/ffmpeg
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2022-10-13 05:31:42 +0000
committer Eric Hameleers <alien@slackware.com>2022-10-13 05:31:42 +0000
commitbbcef8055d73a6834ee7f895e87d7bf03338f3a2 (patch)
tree06d912f7441883fc7b084095f0fe55a53595421c /ffmpeg
parent10f29c5f1da8a0978272af0a351ba9cb1ec3cb83 (diff)
downloadasb-bbcef8055d73a6834ee7f895e87d7bf03338f3a2.tar.gz
asb-bbcef8055d73a6834ee7f895e87d7bf03338f3a2.tar.xz
Initial revision
Diffstat (limited to 'ffmpeg')
-rw-r--r--ffmpeg/build/patches/add-av_stream_get_first_dts-for-chromium.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/ffmpeg/build/patches/add-av_stream_get_first_dts-for-chromium.patch b/ffmpeg/build/patches/add-av_stream_get_first_dts-for-chromium.patch
new file mode 100644
index 00000000..20ea725d
--- /dev/null
+++ b/ffmpeg/build/patches/add-av_stream_get_first_dts-for-chromium.patch
@@ -0,0 +1,31 @@
+diff '--color=auto' -rupN ffmpeg.orig/libavformat/avformat.h ffmpeg/libavformat/avformat.h
+--- ffmpeg.orig/libavformat/avformat.h 2022-08-19 17:42:47.323422603 +0200
++++ ffmpeg/libavformat/avformat.h 2022-08-19 17:42:51.347130436 +0200
+@@ -1128,6 +1128,10 @@ struct AVCodecParserContext *av_stream_g
+ */
+ 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 '--color=auto' -rupN ffmpeg.orig/libavformat/mux_utils.c ffmpeg/libavformat/mux_utils.c
+--- ffmpeg.orig/libavformat/mux_utils.c 2022-08-19 17:42:47.346758108 +0200
++++ ffmpeg/libavformat/mux_utils.c 2022-08-19 17:47:28.549589002 +0200
+@@ -37,6 +37,13 @@ int64_t av_stream_get_end_pts(const AVSt
+ 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 ^^^
++
+ int avformat_query_codec(const AVOutputFormat *ofmt, enum AVCodecID codec_id,
+ int std_compliance)
+ {