mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 17:11:56 +00:00
32 lines
1.1 KiB
Diff
32 lines
1.1 KiB
Diff
diff -Naur ffmpeg-7.1.1.old/libavformat/avformat.h ffmpeg-7.1.1/libavformat/avformat.h
|
|
--- ffmpeg-7.1.1.old/libavformat/avformat.h 2025-03-24 10:54:38.357759076 +0100
|
|
+++ ffmpeg-7.1.1/libavformat/avformat.h 2025-03-24 10:54:39.096586841 +0100
|
|
@@ -1202,6 +1202,10 @@
|
|
|
|
struct AVCodecParserContext *av_stream_get_parser(const AVStream *s);
|
|
|
|
+// 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 -Naur ffmpeg-7.1.1.old/libavformat/utils.c ffmpeg-7.1.1/libavformat/utils.c
|
|
--- ffmpeg-7.1.1.old/libavformat/utils.c 2025-03-24 10:54:38.360759112 +0100
|
|
+++ ffmpeg-7.1.1/libavformat/utils.c 2025-03-24 10:54:39.097179227 +0100
|
|
@@ -44,6 +44,13 @@
|
|
* various utility functions for use within FFmpeg
|
|
*/
|
|
|
|
+// 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 ^^^
|
|
+
|
|
/* an arbitrarily chosen "sane" max packet size -- 50M */
|
|
#define SANE_CHUNK_SIZE (50000000)
|
|
|