Control: tags 1144029 + patch Control: tags 1144029 + pending Dear maintainer,
I've prepared an NMU for openboard (versioned as 1.7.7+dfsg-2.1) and uploaded it to DELAYED/2. Please feel free to tell me if I should cancel it. cu Adrian
diffstat for openboard-1.7.7+dfsg openboard-1.7.7+dfsg changelog | 7 + patches/0001-refactor-UBFFmpegVideoEncoder-Use-avcodec_get_suppor.patch | 40 ++++++++++ patches/series | 1 3 files changed, 48 insertions(+) diff -Nru openboard-1.7.7+dfsg/debian/changelog openboard-1.7.7+dfsg/debian/changelog --- openboard-1.7.7+dfsg/debian/changelog 2026-07-24 20:26:47.000000000 +0300 +++ openboard-1.7.7+dfsg/debian/changelog 2026-10-03 18:08:10.000000000 +0300 @@ -1,3 +1,10 @@ +openboard (1.7.7+dfsg-2.1) unstable; urgency=medium + + * Non-maintainer upload. + * Backport upstream fix for FTBFS with FFmpeg 9. (Closes: #1144029) + + -- Adrian Bunk <[email protected]> Sat, 03 Oct 2026 18:08:10 +0300 + openboard (1.7.7+dfsg-2) unstable; urgency=medium * Team upload diff -Nru openboard-1.7.7+dfsg/debian/patches/0001-refactor-UBFFmpegVideoEncoder-Use-avcodec_get_suppor.patch openboard-1.7.7+dfsg/debian/patches/0001-refactor-UBFFmpegVideoEncoder-Use-avcodec_get_suppor.patch --- openboard-1.7.7+dfsg/debian/patches/0001-refactor-UBFFmpegVideoEncoder-Use-avcodec_get_suppor.patch 1970-01-01 02:00:00.000000000 +0200 +++ openboard-1.7.7+dfsg/debian/patches/0001-refactor-UBFFmpegVideoEncoder-Use-avcodec_get_suppor.patch 2026-10-03 18:08:10.000000000 +0300 @@ -0,0 +1,40 @@ +From 784bcd805fc0601360dd00b64a29d05a4e036845 Mon Sep 17 00:00:00 2001 +From: Vekhir <[email protected]> +Date: Mon, 3 Feb 2025 01:32:43 +0100 +Subject: refactor(UBFFmpegVideoEncoder): Use avcodec_get_supported_config + +FFmpeg 7.1 introduces avcodec_get_supported_config to query +available sample formats. It basically copies over sample_fmts, +but doing so directly is deprecated. +--- + src/podcast/ffmpeg/UBFFmpegVideoEncoder.cpp | 14 +++++++++++++- + 1 file changed, 13 insertions(+), 1 deletion(-) + +diff --git a/src/podcast/ffmpeg/UBFFmpegVideoEncoder.cpp b/src/podcast/ffmpeg/UBFFmpegVideoEncoder.cpp +index 24451f27..b2111d93 100644 +--- a/src/podcast/ffmpeg/UBFFmpegVideoEncoder.cpp ++++ b/src/podcast/ffmpeg/UBFFmpegVideoEncoder.cpp +@@ -448,7 +448,19 @@ bool UBFFmpegVideoEncoder::init() + } + + c->bit_rate = 96000; +- c->sample_fmt = audioCodec->sample_fmts ? audioCodec->sample_fmts[0] : AV_SAMPLE_FMT_FLTP;// FLTP by default for AAC ++ ++ const AVSampleFormat* sample_fmts; ++#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(61, 19, 100) ++ sample_fmts = audioCodec->sample_fmts; ++#else ++ int err = avcodec_get_supported_config(nullptr, audioCodec, AV_CODEC_CONFIG_SAMPLE_FORMAT, 0, (const void**)&sample_fmts, nullptr); ++ if (err) { ++ setLastErrorMessage("Could not get supported sample formats"); ++ return false; ++ } ++#endif ++ c->sample_fmt = sample_fmts ? sample_fmts[0] : AV_SAMPLE_FMT_FLTP;// FLTP by default for AAC ++ + c->sample_rate = mAudioSampleRate; + + #if LIBAVUTIL_VERSION_INT < AV_VERSION_INT(57, 25, 100) +-- +2.47.3 + diff -Nru openboard-1.7.7+dfsg/debian/patches/series openboard-1.7.7+dfsg/debian/patches/series --- openboard-1.7.7+dfsg/debian/patches/series 2026-07-24 20:26:47.000000000 +0300 +++ openboard-1.7.7+dfsg/debian/patches/series 2026-10-03 18:08:10.000000000 +0300 @@ -9,3 +9,4 @@ 2008_use-Debian-js-libraries.patch 2009_fonts.patch 1008_fix-bashism-in-podcast-pri.patch +0001-refactor-UBFFmpegVideoEncoder-Use-avcodec_get_suppor.patch

