mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-10-04 13:52:20 +08:00
1. version changes: * vcpkg: 2024.07.12 -> 2024.11.16 * aom (except linux sciter): 3.9.1 -> 3.11.0 * libvpx: 1.14.1 -> 1.15.0 * libyuv: not update because compiled failed on arm64, and didn't apply different version on different archs * opus: already the latest version * ffmpeg: 7.0.2 -> 7.1 2. other changes: * android 5.0 required, otherwise crash when start, because FFmpeg 7.1 link to mediandk directly 3. Tests: * Except arm, arm64, linux amf, ios, all the other codecs are tested * Compile on arm32 linux is not tested, ci is failed before vcpkg install * Tested windows FFmpeg qsv, still no memory leak Signed-off-by: 21pages <sunboeasy@gmail.com>
35 lines
1.1 KiB
Diff
35 lines
1.1 KiB
Diff
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
|
|
index cd7b0d941c..b4a6dce885 100644
|
|
--- a/libavformat/avformat.h
|
|
+++ b/libavformat/avformat.h
|
|
@@ -1169,7 +1169,11 @@ typedef struct AVStreamGroup {
|
|
} AVStreamGroup;
|
|
|
|
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 --git a/libavformat/mux_utils.c b/libavformat/mux_utils.c
|
|
index de7580c32d..0ef0fe530e 100644
|
|
--- a/libavformat/mux_utils.c
|
|
+++ b/libavformat/mux_utils.c
|
|
@@ -29,7 +29,14 @@ #include "avformat.h"
|
|
#include "avio.h"
|
|
#include "internal.h"
|
|
#include "mux.h"
|
|
|
|
+// 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)
|
|
{
|