Skip to Content.
Sympa Menu

sm-commit - [[SM-Commit] ] GIT changes to master grimoire by Treeve Jelbert (37eb9299910e25325aa48f17f43b1588ec92154a)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Treeve Jelbert <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org, sm-commit AT lists.sourcemage.org
  • Subject: [[SM-Commit] ] GIT changes to master grimoire by Treeve Jelbert (37eb9299910e25325aa48f17f43b1588ec92154a)
  • Date: Mon, 5 Oct 2026 13:01:12 +0000

GIT changes to master grimoire by Treeve Jelbert <treeve AT sourcemage.org>:

devel/mold/BUILD | 2
devel/mold/CONFIGURE | 1
devel/mold/DEPENDS | 5 -
devel/mold/DETAILS | 18 -----
devel/mold/HISTORY | 115 ----------------------------------
devel/mold/PRE_BUILD | 4 -
disk/limine/DETAILS | 2
disk/limine/HISTORY | 3
qt-cmake/quazip/DETAILS | 4 -
qt-cmake/quazip/HISTORY | 3
rust-crates/mold/DEPENDS | 8 ++
rust-crates/mold/DETAILS | 18 +++++
rust-crates/mold/HISTORY | 122 ++++++++++++++++++++++++++++++++++++
rust-crates/mold/INSTALL | 2
video/mlt/DETAILS | 4 -
video/mlt/HISTORY | 4 +
video/mlt/PRE_BUILD | 3
video/mlt/patches/ffm9.diff | 148
--------------------------------------------
18 files changed, 165 insertions(+), 301 deletions(-)

New commits:
commit 37eb9299910e25325aa48f17f43b1588ec92154a
Author: Treeve Jelbert <treeve AT sourcemage.org>
Commit: Treeve Jelbert <treeve AT sourcemage.org>

mold is now rust based

commit 6ac83fd0df497ce5e37cfdf1e9d55914206fb613
Author: Treeve Jelbert <treeve AT sourcemage.org>
Commit: Treeve Jelbert <treeve AT sourcemage.org>

mold: => 3.0.0

commit 83376355c938d6600c347a33a22a6307190d3856
Author: Treeve Jelbert <treeve AT sourcemage.org>
Commit: Treeve Jelbert <treeve AT sourcemage.org>

quazip: => 1.7.2

commit 6f53242dc9e18e0ec484b8365f3a749b6636aecb
Author: Treeve Jelbert <treeve AT sourcemage.org>
Commit: Treeve Jelbert <treeve AT sourcemage.org>

limine: => 12.9.2

commit ff77ba693978c156e11c6673e3bbdfba668556aa
Author: Treeve Jelbert <treeve AT sourcemage.org>
Commit: Treeve Jelbert <treeve AT sourcemage.org>

mlt: => 7.42.0

diff --git a/devel/mold/BUILD b/devel/mold/BUILD
deleted file mode 100755
index 110a749..0000000
--- a/devel/mold/BUILD
+++ /dev/null
@@ -1,2 +0,0 @@
-LDFLAGS+=' -ldl' &&
-default_build
diff --git a/devel/mold/CONFIGURE b/devel/mold/CONFIGURE
deleted file mode 100755
index c46fbbc..0000000
--- a/devel/mold/CONFIGURE
+++ /dev/null
@@ -1 +0,0 @@
-. "${GRIMOIRE}"/CMAKE_CONFIGURE
diff --git a/devel/mold/DEPENDS b/devel/mold/DEPENDS
deleted file mode 100755
index aab1ddc..0000000
--- a/devel/mold/DEPENDS
+++ /dev/null
@@ -1,5 +0,0 @@
-. "${GRIMOIRE}"/CMAKE_DEPENDS &&
-depends blake3 &&
-depends tbb " -DMOLD_USE_SYSTEM_TBB=ON" &&
-depends zlib &&
-depends zstd
diff --git a/devel/mold/DETAILS b/devel/mold/DETAILS
deleted file mode 100755
index f47d9d8..0000000
--- a/devel/mold/DETAILS
+++ /dev/null
@@ -1,18 +0,0 @@
-. "${GRIMOIRE}"/CMAKE_FUNCTIONS
- SPELL=mold
- VERSION=2.42.0
-
SOURCE_HASH=sha512:a0ab118e22e8647bd113def9d7e907ecec70d6b3175593df496dc063722413bf60d5f5bc221c7b29e4ad61093451ba0e7ee16830118c91943db8b62b1d1a81ef
- SOURCE="$SPELL-$VERSION.tar.gz"
-
SOURCE_URL[0]=https://github.com/rui314/${SPELL}/archive/refs/tags/v${VERSION}.tar.gz
-SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-${VERSION}"
- WEB_SITE="https://github.com/rui314/mold";
- LICENSE[0]=MIT
- ENTERED=20211224
- SHORT="a faster drop-in replacement for existing Unix linkers"
-cat << EOF
-mold is a faster drop-in replacement for existing Unix linkers. It is several
-times faster than LLVM lld linker, the second-fastest open-source linker
which
-I originally created a few years ago. mold is created for increasing
developer
-productivity by reducing build time especially in rapid debug-edit-rebuild
-cycles.
-EOF
diff --git a/devel/mold/HISTORY b/devel/mold/HISTORY
deleted file mode 100644
index 5b090bc..0000000
--- a/devel/mold/HISTORY
+++ /dev/null
@@ -1,115 +0,0 @@
-2026-08-12 Treeve Jelbert <treeve AT sourcemage.org>
- * DETAILS: version 2.42.0
-
-2026-04-13 Treeve Jelbert <treeve AT sourcemage.org>
- * DETAILS: version 2.41.0
-
-2025-09-25 Treeve Jelbert <treeve AT sourcemage.org>
- * DETAILS: version 2.40.4
-
-2025-06-09 Treeve Jelbert <treeve AT sourcemage.org>
- * DETAILS: version 2.40.1
-
-2025-04-27 Treeve Jelbert <treeve AT sourcemage.org>
- * DETAILS: version 2.38.0
-
-2025-03-19 Treeve Jelbert <treeve AT sourcemage.org>
- * DETAILS: version 2.37.1
-
-2025-01-09 Treeve Jelbert <treeve AT sourcemage.org>
- * DETAILS: version 2.36.0
-
-2024-12-08 Treeve Jelbert <treeve AT sourcemage.org>
- * DETAILS: version 2.35.0
-
-2024-11-28 Treeve Jelbert <treeve AT sourcemage.org>
- * DETAILS: version 2.34.1
- * PRE_BUILD: tweak
-
-2024-08-07 Treeve Jelbert <treeve AT sourcemage.org>
- * DETAILS: version 2.33.0
-
-2024-07-01 Treeve Jelbert <treeve AT sourcemage.org>
- * DETAILS: version 2.32.1
- * BUILD: added
-
-2024-06-09 Treeve Jelbert <treeve AT sourcemage.org>
- * DETAILS: version 2.32.0
-
-2024-06-08 Treeve Jelbert <treeve AT sourcemage.org>
- * PRE_BUILD: added, find and use blake3
-
-2024-05-03 Treeve Jelbert <treeve AT sourcemage.org>
- * DETAILS: version 2.31.0
-
-2024-03-16 Treeve Jelbert <treeve AT sourcemage.org>
- * DETAILS: version 2.30.0
-
-2023-12-04 Treeve Jelbert <treeve AT sourcemage.org>
- * DETAILS: version 2.4.0
-
-2023-11-21 Treeve Jelbert <treeve AT sourcemage.org>
- * DETAILS: version 2.3.3
-
-2023-10-18 Treeve Jelbert <treeve AT sourcemage.org>
- * DETAILS: version 2.3.0
-
-2023-09-24 Treeve Jelbert <treeve AT sourcemage.org>
- * DETAILS: version 2.2.0
- * DEPENDS: drop SSL; add blake3
-
-2023-08-13 Treeve Jelbert <treeve AT sourcemage.org>
- * DETAILS: version 2.1.0
-
-2023-07-26 Treeve Jelbert <treeve AT sourcemage.org>
- * DETAILS: version 2.0.0
- licence = MIT
-
-2023-06-03 Treeve Jelbert <treeve AT sourcemage.org>
- * DETAILS: version 1.11.0
- * DEPENDS: use zstd, fix tbb flags
- does not need llvm, builds fine with gcc-13
-
-2023-01-04 Florian Franzmann <bwlf AT bandrate.org>
- * DETAILS: version 1.8.0
-
-2022-12-11 Florian Franzmann <bwlf AT bandrate.org>
- * DETAILS, CONFIGURE, DEPENDS: version 1.7.1
- * BUILD, INSTALL: removed
-
-2022-10-23 Florian Franzmann <bwlf AT bandrate.org>
- * DETAILS: version 1.6.0
-
-2022-09-09 Ismael Luceno <ismael AT sourcemage.org>
- * DEPENDS: switched to SSL
-
-2022-08-04 Florian Franzmann <bwlf AT bandrate.org>
- * DETAILS: version 1.4.2
-
-2022-06-18 Florian Franzmann <bwlf AT bandrate.org>
- * DETAILS: version 1.3.0
-
-2022-05-08 Florian Franzmann <bwlf AT bandrate.org>
- * DETAILS: version 1.2.1
-
-2022-04-18 Florian Franzmann <bwlf AT bandrate.org>
- * DETAILS: version 1.2.0
-
-2022-03-12 Florian Franzmann <bwlf AT bandrate.org>
- * DETAILS: version 1.1.1
-
-2022-03-06 Florian Franzmann <bwlf AT bandrate.org>
- * DETAILS: version 1.1
-
-2022-02-05 Florian Franzmann <bwlf AT bandrate.org>
- * DETAILS: version 1.0.3
-
-2022-01-23 Florian Franzmann <bwlf AT bandrate.org>
- * DETAILS: version 1.0.2
-
-2021-12-31 Florian Franzmann <bwlf AT bandrate.org>
- * DETAILS: version 1.0.1
-
-2021-12-24 Florian Franzmann <bwlf AT bandrate.org>
- * BUILD, DEPENDS, DETAILS, INSTALL: spell created
-
diff --git a/devel/mold/PRE_BUILD b/devel/mold/PRE_BUILD
deleted file mode 100755
index 098ce20..0000000
--- a/devel/mold/PRE_BUILD
+++ /dev/null
@@ -1,4 +0,0 @@
-default_pre_build &&
-cd $SOURCE_DIRECTORY &&
-# more info
-sed -i 's/QUIET//' CMakeLists.txt
diff --git a/disk/limine/DETAILS b/disk/limine/DETAILS
index 11959d9..258e5c4 100755
--- a/disk/limine/DETAILS
+++ b/disk/limine/DETAILS
@@ -1,5 +1,5 @@
SPELL=limine
- VERSION=12.9.0
+ VERSION=12.9.2
SOURCE=$SPELL-$VERSION.tar.xz
SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL-$VERSION

SOURCE_URL[0]=https://github.com/Limine-Bootloader/Limine/releases/download/v$VERSION/$SOURCE
diff --git a/disk/limine/HISTORY b/disk/limine/HISTORY
index 8f34bc0..f7673e9 100644
--- a/disk/limine/HISTORY
+++ b/disk/limine/HISTORY
@@ -1,3 +1,6 @@
+2026-10-05 Treeve Jelbert <treeve AT sourcemage.org>
+ * DETAILS: version 12.9.2
+
2026-09-14 Treeve Jelbert <treeve AT sourcemage.org>
* DETAILS: version 12.9.0

diff --git a/qt-cmake/quazip/DETAILS b/qt-cmake/quazip/DETAILS
index 688956e..fc83f81 100755
--- a/qt-cmake/quazip/DETAILS
+++ b/qt-cmake/quazip/DETAILS
@@ -1,6 +1,6 @@
SPELL=quazip
- VERSION=1.5
-
SOURCE_HASH=sha512:c88850f1672d20c375798c58d1cb77744ca63e93b379cf3035a528b57e83a52c1908023870152ce5fc49ad0ccf93d723dbc730b8c1d2abe18cf0b13fba3be1e1
+ VERSION=1.7.2
+
SOURCE_HASH=sha512:423e38def8f93c4c3e7d261227ce0d38f9048d84e2aca029e21b5d0b71915a7ab14d3836a7ed3081cf9f6d3369aaf4eec44ffe2d652cc1a011c211bb940b7e91
SOURCE=$SPELL-$VERSION.tar.gz
SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL-$VERSION
SOURCE_URL[0]=https://github.com/stachenov/$SPELL/archive/v$VERSION.tar.gz
diff --git a/qt-cmake/quazip/HISTORY b/qt-cmake/quazip/HISTORY
index f1a89ec..acf57e8 100644
--- a/qt-cmake/quazip/HISTORY
+++ b/qt-cmake/quazip/HISTORY
@@ -1,3 +1,6 @@
+2026-10-05 Treeve Jelbert <treeve AT sourcemage.org>
+ * DETAILS: version 1.7.2
+
2025-11-05 Treeve Jelbert <treeve AT sourcemage.org>
* DETAILS: version 1.5
* NO_UNITY: added
diff --git a/rust-crates/mold/DEPENDS b/rust-crates/mold/DEPENDS
new file mode 100755
index 0000000..e17862d
--- /dev/null
+++ b/rust-crates/mold/DEPENDS
@@ -0,0 +1,8 @@
+#. "${GRIMOIRE}"/CMAKE_DEPENDS &&
+#depends blake3 &&
+#depends tbb " -DMOLD_USE_SYSTEM_TBB=ON" &&
+#depends zlib &&
+#depends zstd
+
+
+depends rust
diff --git a/rust-crates/mold/DETAILS b/rust-crates/mold/DETAILS
new file mode 100755
index 0000000..947819d
--- /dev/null
+++ b/rust-crates/mold/DETAILS
@@ -0,0 +1,18 @@
+. "${GRIMOIRE}"/CMAKE_FUNCTIONS
+ SPELL=mold
+ VERSION=3.0.0
+
SOURCE_HASH=sha512:ba732b4e4ba38a404bb4c12ca8ded6cb820eb426d907958f1e5761f6815712a412ca10a9c2d737df8e692f7c25791fe612288e417549bba96a3d230bb99eb171
+ SOURCE="$SPELL-$VERSION.tar.gz"
+
SOURCE_URL[0]=https://github.com/rui314/${SPELL}/archive/refs/tags/v${VERSION}.tar.gz
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-${VERSION}"
+ WEB_SITE="https://github.com/rui314/mold";
+ LICENSE[0]=MIT
+ ENTERED=20211224
+ SHORT="a faster drop-in replacement for existing Unix linkers"
+cat << EOF
+mold is a faster drop-in replacement for existing Unix linkers. It is several
+times faster than LLVM lld linker, the second-fastest open-source linker
which
+I originally created a few years ago. mold is created for increasing
developer
+productivity by reducing build time especially in rapid debug-edit-rebuild
+cycles.
+EOF
diff --git a/rust-crates/mold/HISTORY b/rust-crates/mold/HISTORY
new file mode 100644
index 0000000..0fdf9fd
--- /dev/null
+++ b/rust-crates/mold/HISTORY
@@ -0,0 +1,122 @@
+2026-10-05 Treeve Jelbert <treeve AT sourcemage.org>
+ * move spell to rust-crates
+ * DETAILS: version 3.0.0
+ * DEPENDS: now uses rust
+ * BUILD CONFIGURE PRE_BUILD: deleted
+ * INSTALL: added
+
+2026-08-12 Treeve Jelbert <treeve AT sourcemage.org>
+ * DETAILS: version 2.42.0
+
+2026-04-13 Treeve Jelbert <treeve AT sourcemage.org>
+ * DETAILS: version 2.41.0
+
+2025-09-25 Treeve Jelbert <treeve AT sourcemage.org>
+ * DETAILS: version 2.40.4
+
+2025-06-09 Treeve Jelbert <treeve AT sourcemage.org>
+ * DETAILS: version 2.40.1
+
+2025-04-27 Treeve Jelbert <treeve AT sourcemage.org>
+ * DETAILS: version 2.38.0
+
+2025-03-19 Treeve Jelbert <treeve AT sourcemage.org>
+ * DETAILS: version 2.37.1
+
+2025-01-09 Treeve Jelbert <treeve AT sourcemage.org>
+ * DETAILS: version 2.36.0
+
+2024-12-08 Treeve Jelbert <treeve AT sourcemage.org>
+ * DETAILS: version 2.35.0
+
+2024-11-28 Treeve Jelbert <treeve AT sourcemage.org>
+ * DETAILS: version 2.34.1
+ * PRE_BUILD: tweak
+
+2024-08-07 Treeve Jelbert <treeve AT sourcemage.org>
+ * DETAILS: version 2.33.0
+
+2024-07-01 Treeve Jelbert <treeve AT sourcemage.org>
+ * DETAILS: version 2.32.1
+ * BUILD: added
+
+2024-06-09 Treeve Jelbert <treeve AT sourcemage.org>
+ * DETAILS: version 2.32.0
+
+2024-06-08 Treeve Jelbert <treeve AT sourcemage.org>
+ * PRE_BUILD: added, find and use blake3
+
+2024-05-03 Treeve Jelbert <treeve AT sourcemage.org>
+ * DETAILS: version 2.31.0
+
+2024-03-16 Treeve Jelbert <treeve AT sourcemage.org>
+ * DETAILS: version 2.30.0
+
+2023-12-04 Treeve Jelbert <treeve AT sourcemage.org>
+ * DETAILS: version 2.4.0
+
+2023-11-21 Treeve Jelbert <treeve AT sourcemage.org>
+ * DETAILS: version 2.3.3
+
+2023-10-18 Treeve Jelbert <treeve AT sourcemage.org>
+ * DETAILS: version 2.3.0
+
+2023-09-24 Treeve Jelbert <treeve AT sourcemage.org>
+ * DETAILS: version 2.2.0
+ * DEPENDS: drop SSL; add blake3
+
+2023-08-13 Treeve Jelbert <treeve AT sourcemage.org>
+ * DETAILS: version 2.1.0
+
+2023-07-26 Treeve Jelbert <treeve AT sourcemage.org>
+ * DETAILS: version 2.0.0
+ licence = MIT
+
+2023-06-03 Treeve Jelbert <treeve AT sourcemage.org>
+ * DETAILS: version 1.11.0
+ * DEPENDS: use zstd, fix tbb flags
+ does not need llvm, builds fine with gcc-13
+
+2023-01-04 Florian Franzmann <bwlf AT bandrate.org>
+ * DETAILS: version 1.8.0
+
+2022-12-11 Florian Franzmann <bwlf AT bandrate.org>
+ * DETAILS, CONFIGURE, DEPENDS: version 1.7.1
+ * BUILD, INSTALL: removed
+
+2022-10-23 Florian Franzmann <bwlf AT bandrate.org>
+ * DETAILS: version 1.6.0
+
+2022-09-09 Ismael Luceno <ismael AT sourcemage.org>
+ * DEPENDS: switched to SSL
+
+2022-08-04 Florian Franzmann <bwlf AT bandrate.org>
+ * DETAILS: version 1.4.2
+
+2022-06-18 Florian Franzmann <bwlf AT bandrate.org>
+ * DETAILS: version 1.3.0
+
+2022-05-08 Florian Franzmann <bwlf AT bandrate.org>
+ * DETAILS: version 1.2.1
+
+2022-04-18 Florian Franzmann <bwlf AT bandrate.org>
+ * DETAILS: version 1.2.0
+
+2022-03-12 Florian Franzmann <bwlf AT bandrate.org>
+ * DETAILS: version 1.1.1
+
+2022-03-06 Florian Franzmann <bwlf AT bandrate.org>
+ * DETAILS: version 1.1
+
+2022-02-05 Florian Franzmann <bwlf AT bandrate.org>
+ * DETAILS: version 1.0.3
+
+2022-01-23 Florian Franzmann <bwlf AT bandrate.org>
+ * DETAILS: version 1.0.2
+
+2021-12-31 Florian Franzmann <bwlf AT bandrate.org>
+ * DETAILS: version 1.0.1
+
+2021-12-24 Florian Franzmann <bwlf AT bandrate.org>
+ * BUILD, DEPENDS, DETAILS, INSTALL: spell created
+
diff --git a/rust-crates/mold/INSTALL b/rust-crates/mold/INSTALL
new file mode 100755
index 0000000..92d3bd7
--- /dev/null
+++ b/rust-crates/mold/INSTALL
@@ -0,0 +1,2 @@
+cd $SOURCE_DIRECTORY &&
+PREFIX=$INSTALL_ROOT/usr ./install-mold.sh
diff --git a/video/mlt/DETAILS b/video/mlt/DETAILS
index 0214bbb..b2c4a9e 100755
--- a/video/mlt/DETAILS
+++ b/video/mlt/DETAILS
@@ -9,8 +9,8 @@ if [[ $MLT_BRANCH == scm ]];then
SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL-git
FORCE_DOWNLOAD=on
else
- VERSION=7.40.0
-
SOURCE_HASH=sha512:0f276c371a15decb0814008496206d3314b5d548389dc9e4913cfbc9ae03502f9268b8d22435d501232ac771ee69847ca78bcb707a95784fb9de21ac077128dc
+ VERSION=7.42.0
+
SOURCE_HASH=sha512:37cd9372f3dda4ddd25ab1460f36042d408131308c344e8fbbf7c5a7b78db583856527bc9356e2772fdb68f50909ddf09529ce079521c7af81ae70ce681a146c
SOURCE=$SPELL-v$VERSION.tar.gz
SOURCE_URL[0]=https://github.com/mltframework/mlt/archive/v$VERSION.tar.gz
SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL-$VERSION
diff --git a/video/mlt/HISTORY b/video/mlt/HISTORY
index beac01f..a8b6203 100644
--- a/video/mlt/HISTORY
+++ b/video/mlt/HISTORY
@@ -1,3 +1,7 @@
+2026-10-05 Treeve Jelbert <treeve AT sourcemage.org>
+ * DETAILS: version 7.42.0
+ * PRE_BUILD patches/ffm9.diff: deleted
+
2026-08-25 Treeve Jelbert <treeve AT sourcemage.org>
* PRE_BUILD ffm9.diff: added, support ffmpeg9

diff --git a/video/mlt/PRE_BUILD b/video/mlt/PRE_BUILD
deleted file mode 100755
index 4604ffc..0000000
--- a/video/mlt/PRE_BUILD
+++ /dev/null
@@ -1,3 +0,0 @@
-default_pre_build &&
-cd $SOURCE_DIRECTORY &&
-apply_patch_dir patches
diff --git a/video/mlt/patches/ffm9.diff b/video/mlt/patches/ffm9.diff
deleted file mode 100644
index 1ff8718..0000000
--- a/video/mlt/patches/ffm9.diff
+++ /dev/null
@@ -1,148 +0,0 @@
-diff --git a/src/modules/avformat/consumer_avformat.c
b/src/modules/avformat/consumer_avformat.c
-index d5ab5f1cd..cebd89f0e 100644
---- a/src/modules/avformat/consumer_avformat.c
-+++ b/src/modules/avformat/consumer_avformat.c
-@@ -629,7 +629,8 @@ static void apply_properties(void *obj, mlt_properties
properties, int flags)
- || (opt_name[0] == 'a' && (flags &
AV_OPT_FLAG_AUDIO_PARAM))))
- opt = av_opt_find(obj, ++opt_name, NULL, flags, search_flags);
- // Apply option if found
-- if (opt && strcmp(opt_name, "channel_layout") && strcmp(opt_name,
"frame_duration"))
-+ if (opt && strcmp(opt_name, "channel_layout") && strcmp(opt_name,
"frame_duration")
-+ && strcmp(opt_name, "dc"))
- av_opt_set(obj, opt_name, mlt_properties_get_value(properties,
i), search_flags);
- }
- }
-@@ -680,7 +681,6 @@ static int pick_sample_fmt(mlt_properties properties,
const AVCodec *codec)
- {
- int sample_fmt = AV_SAMPLE_FMT_S16;
- const char *format = mlt_properties_get(properties, "mlt_audio_format");
-- const int *p = codec->sample_fmts;
- const char *sample_fmt_str = mlt_properties_get(properties,
"sample_fmt");
-
- if (sample_fmt_str)
-@@ -699,13 +699,29 @@ static int pick_sample_fmt(mlt_properties properties,
const AVCodec *codec)
- else if (!strcmp(format, "float"))
- sample_fmt = AV_SAMPLE_FMT_FLTP;
- }
-+#if LIBAVCODEC_VERSION_INT >= ((61 << 16) + (13 << 8) + 100)
-+ const enum AVSampleFormat *sample_fmts = NULL;
-+ avcodec_get_supported_config(NULL,
-+ codec,
-+ AV_CODEC_CONFIG_SAMPLE_FORMAT,
-+ 0,
-+ (const void **) &sample_fmts,
-+ NULL);
-+ const int *p = (const int *) sample_fmts;
-+#else
-+ const int *p = codec->sample_fmts;
-+#endif
- // check if codec supports our mlt_audio_format
-- for (; *p != -1; p++) {
-+ for (; p && *p != -1; p++) {
- if (*p == sample_fmt)
- return sample_fmt;
- }
- // no match - pick first one we support
-+#if LIBAVCODEC_VERSION_INT >= ((61 << 16) + (13 << 8) + 100)
-+ for (p = (const int *) sample_fmts; p && *p != -1; p++) {
-+#else
- for (p = codec->sample_fmts; *p != -1; p++) {
-+#endif
- switch (*p) {
- case AV_SAMPLE_FMT_U8:
- case AV_SAMPLE_FMT_S16:
-@@ -980,9 +996,25 @@ static AVStream *add_video_stream(mlt_consumer consumer,
- c->framerate = av_inv_q(c->time_base);
-
- // Default to the codec's first pix_fmt if possible.
-+#if LIBAVCODEC_VERSION_INT >= ((61 << 16) + (13 << 8) + 100)
-+ {
-+ const enum AVPixelFormat *video_pix_fmts = NULL;
-+ if (codec)
-+ avcodec_get_supported_config(NULL,
-+ codec,
-+ AV_CODEC_CONFIG_PIX_FORMAT,
-+ 0,
-+ (const void **)
&video_pix_fmts,
-+ NULL);
-+ c->pix_fmt = pix_fmt ? av_get_pix_fmt(pix_fmt)
-+ : codec ? (video_pix_fmts ? video_pix_fmts[0] :
AV_PIX_FMT_YUV422P)
-+ : AV_PIX_FMT_YUV420P;
-+ }
-+#else
- c->pix_fmt = pix_fmt ? av_get_pix_fmt(pix_fmt)
- : codec ? (codec->pix_fmts ? codec->pix_fmts[0] :
AV_PIX_FMT_YUV422P)
- : AV_PIX_FMT_YUV420P;
-+#endif
-
- if (AV_PIX_FMT_VAAPI == c->pix_fmt) {
- int result = init_vaapi(properties, c);
-@@ -1082,7 +1114,9 @@ static AVStream *add_video_stream(mlt_consumer
consumer,
- c->rc_override_count = i;
- if (!c->rc_initial_buffer_occupancy)
- c->rc_initial_buffer_occupancy = c->rc_buffer_size * 3 / 4;
-+#if LIBAVCODEC_VERSION_INT < ((62 << 16) + (25 << 8) + 100)
- c->intra_dc_precision = mlt_properties_get_int(properties, "dc") -
8;
-+#endif
-
- // Setup dual-pass
- i = mlt_properties_get_int(properties, "pass");
-@@ -1199,6 +1233,26 @@ static int open_video(mlt_properties properties,
- AV_OPT_FLAG_VIDEO_PARAM |
AV_OPT_FLAG_ENCODING_PARAM);
- }
-
-+#if LIBAVCODEC_VERSION_INT >= ((61 << 16) + (13 << 8) + 100)
-+ if (codec) {
-+ const enum AVPixelFormat *pix_fmts = NULL;
-+ avcodec_get_supported_config(NULL,
-+ codec,
-+ AV_CODEC_CONFIG_PIX_FORMAT,
-+ 0,
-+ (const void **) &pix_fmts,
-+ NULL);
-+ if (pix_fmts) {
-+ const enum AVPixelFormat *p = pix_fmts;
-+ for (; *p != -1; p++) {
-+ if (*p == video_enc->pix_fmt)
-+ break;
-+ }
-+ if (*p == -1)
-+ video_enc->pix_fmt = pix_fmts[0];
-+ }
-+ }
-+#else
- if (codec && codec->pix_fmts) {
- const enum AVPixelFormat *p = codec->pix_fmts;
- for (; *p != -1; p++) {
-@@ -1208,6 +1262,7 @@ static int open_video(mlt_properties properties,
- if (*p == -1)
- video_enc->pix_fmt = codec->pix_fmts[0];
- }
-+#endif
-
- const AVPixFmtDescriptor *srcDesc =
av_pix_fmt_desc_get(video_enc->pix_fmt);
- if (srcDesc->flags & AV_PIX_FMT_FLAG_RGB) {
-diff --git a/src/modules/avformat/consumer_avformat.yml
b/src/modules/avformat/consumer_avformat.yml
-index 989466b55..f3644206c 100644
---- a/src/modules/avformat/consumer_avformat.yml
-+++ b/src/modules/avformat/consumer_avformat.yml
-@@ -3,7 +3,7 @@ type: consumer
- identifier: avformat
- title: FFmpeg Output
- version: 7
--copyright: Copyright (C) 2003-2019 Meltytech, LLC
-+copyright: Copyright (C) 2003-2026 Meltytech, LLC
- license: LGPL
- language: en
- url: http://www.ffmpeg.org/
-@@ -452,6 +452,10 @@ parameters:
- - identifier: dc
- title: Intra DC precision
- type: integer
-+ description: >
-+ Sets intra_dc_precision for MPEG-2 encoding. The value is offset by 8,
-+ so the default of 8 means precision 0 (8-bit). Only relevant for
-+ MPEG-2; ignored on FFmpeg 8.0 and later.
- default: 8
-
- - identifier: muxdelay


  • [[SM-Commit] ] GIT changes to master grimoire by Treeve Jelbert (37eb9299910e25325aa48f17f43b1588ec92154a), Treeve Jelbert, 10/05/2026

Archive powered by MHonArc 2.6.24.

Top of Page