Files
ffmpeg-PKGBUILD/040-ffmpeg-add-av_stream_get_first_dts-for-chromium.patch
T
Daniel Bermond 09b95fa8b5 Update to version 6.1
Also in this update:
- add missing libharfbuzz
- add libopenvino
- add depends that were implicitly satisfied
2023-11-14 21:00:44 -03:00

30 lines
832 B
Diff

--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -1030,6 +1030,10 @@ attribute_deprecated
int64_t av_stream_get_end_pts(const AVStream *st);
#endif
+// 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
/**
--- a/libavformat/utils.c
+++ b/libavformat/utils.c
@@ -56,6 +56,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 ffstream(st)->first_dts;
+}
+// Chromium: We use the internal field first_dts ^^^
+
/* an arbitrarily chosen "sane" max packet size -- 50M */
#define SANE_CHUNK_SIZE (50000000)