Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package chromaprint for openSUSE:Factory checked in at 2025-01-25 19:10:18 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/chromaprint (Old) and /work/SRC/openSUSE:Factory/.chromaprint.new.2316 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "chromaprint" Sat Jan 25 19:10:18 2025 rev:27 rq:1240252 version:1.5.1+git.20221217 Changes: -------- --- /work/SRC/openSUSE:Factory/chromaprint/chromaprint.changes 2024-12-15 12:34:37.203792077 +0100 +++ /work/SRC/openSUSE:Factory/.chromaprint.new.2316/chromaprint.changes 2025-01-25 19:10:31.427841968 +0100 @@ -1,0 +2,12 @@ +Sat Jan 25 08:50:23 UTC 2025 - Dave Plater <[email protected]> + +- Add 0005-Fix-compatibility-with-ffmpeg-7.0.patch and force build + with ffmpeg-7 libraries + +------------------------------------------------------------------- +Fri Jan 24 13:45:25 UTC 2025 - Dave Plater <[email protected]> + +- Update to git snapshot 1.5.1+git.20221217 to allow build against + ffmpeg-5 libraries. No other major changes. + +------------------------------------------------------------------- Old: ---- chromaprint-1.5.1.tar.gz New: ---- 0005-Fix-compatibility-with-ffmpeg-7.0.patch chromaprint-1.5.1+git.20221217.tar.gz BETA DEBUG BEGIN: New: - Add 0005-Fix-compatibility-with-ffmpeg-7.0.patch and force build with ffmpeg-7 libraries BETA DEBUG END: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ chromaprint.spec ++++++ --- /var/tmp/diff_new_pack.fkjmsq/_old 2025-01-25 19:10:32.007865691 +0100 +++ /var/tmp/diff_new_pack.fkjmsq/_new 2025-01-25 19:10:32.007865691 +0100 @@ -1,7 +1,7 @@ # # spec file for package chromaprint # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # Copyright (c) 2012 Pascal Bleser <[email protected]> # # All modifications and additions to the file contributed by third parties @@ -17,24 +17,26 @@ # +%define rev aa67c95b9e486884a6d3ee8b0c91207d8c2b0551 %define soname 1 Name: chromaprint -Version: 1.5.1 +Version: 1.5.1+git.20221217 Release: 0 Summary: Audio Fingerprinting Library License: LGPL-2.1-only AND MIT URL: https://acoustid.org/chromaprint -Source0: https://github.com/acoustid/chromaprint/releases/download/v%{version}/%{name}-%{version}.tar.gz +#https://github.com/acoustid/chromaprint/archive/refs/ +Source0: https://github.com/acoustid/chromaprint/archive/%{rev}.tar.gz#/%{name}-%{version}.tar.gz Source1: baselibs.conf +Patch0: 0005-Fix-compatibility-with-ffmpeg-7.0.patch BuildRequires: cmake +BuildRequires: ffmpeg-7-libavcodec-devel BuildRequires: gcc-c++ BuildRequires: pkgconfig -BuildRequires: pkgconfig(libavcodec) < 59 -BuildRequires: pkgconfig(libavformat) < 59 -BuildRequires: pkgconfig(libavresample) -BuildRequires: pkgconfig(libavutil) < 58 -BuildRequires: pkgconfig(libswresample) < 57 +BuildRequires: pkgconfig(libavformat) +BuildRequires: pkgconfig(libavutil) +BuildRequires: pkgconfig(libswresample) %description Chromaprint is the core component of the Acoustid project. It's a client-side @@ -74,7 +76,7 @@ fingerprinting. %prep -%autosetup -p1 +%autosetup -p1 -n %{name}-%{rev} %build %cmake \ ++++++ 0005-Fix-compatibility-with-ffmpeg-7.0.patch ++++++ From: Sebastian Ramacher <[email protected]> Date: Fri, 2 Aug 2024 23:38:21 +0200 Subject: Fix compatibility with ffmpeg 7.0 --- src/audio/ffmpeg_audio_reader.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/audio/ffmpeg_audio_reader.h b/src/audio/ffmpeg_audio_reader.h index 35b2934..d57d9a1 100644 --- a/src/audio/ffmpeg_audio_reader.h +++ b/src/audio/ffmpeg_audio_reader.h @@ -118,8 +118,13 @@ inline bool FFmpegAudioReader::SetInputSampleRate(int sample_rate) { inline bool FFmpegAudioReader::SetInputChannels(int channels) { char buf[64]; - sprintf(buf, "%d", channels); - return av_dict_set(&m_input_opts, "channels", buf, 0) >= 0; + if (channels == 1) + sprintf(buf, "%s", "mono"); + else if (channels == 2) + sprintf(buf, "%s", "stereo"); + else + sprintf(buf, "%d channels", channels); + return av_dict_set(&m_input_opts, "ch_layout", buf, 0) >= 0; } inline bool FFmpegAudioReader::Open(const std::string &file_name) {
