diff --git a/003-Marked-unimplemented-dither-enums.patch b/003-Marked-unimplemented-dither-enums.patch new file mode 100644 index 0000000000000000000000000000000000000000..4a839b3e6e0983c6b63a7a390ce8a3f98a8123ec --- /dev/null +++ b/003-Marked-unimplemented-dither-enums.patch @@ -0,0 +1,34 @@ +From 218c4fc50b75ab2b1df5a61d8d46c372de6fb2a5 Mon Sep 17 00:00:00 2001 +From: ctl-ly +Date: Wed, 28 Dec 2022 18:22:13 +0800 +Subject: [PATCH] 003 + +--- + libsndfile-1.0.31/include/sndfile.h.in | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/libsndfile-1.0.31/include/sndfile.h.in b/libsndfile-1.0.31/include/sndfile.h.in +index 917ff4b..970fb26 100644 +--- a/libsndfile-1.0.31/include/sndfile.h.in ++++ b/libsndfile-1.0.31/include/sndfile.h.in +@@ -173,6 +173,7 @@ enum + + SFC_SET_RAW_START_OFFSET = 0x1090, + ++ /* Commands reserved for dithering, which is not implemented. */ + SFC_SET_DITHER_ON_WRITE = 0x10A0, + SFC_SET_DITHER_ON_READ = 0x10A1, + +@@ -386,8 +387,7 @@ typedef struct + + /* + ** Enums and typedefs for adding dither on read and write. +-** See the html documentation for sf_command(), SFC_SET_DITHER_ON_WRITE +-** and SFC_SET_DITHER_ON_READ. ++** Reserved for future implementation. + */ + + enum +-- +2.27.0 + diff --git a/libsndfile-1.0.31.tar.bz2 b/libsndfile-1.0.31.tar.bz2 index 683f561161d31236fc7d49aeaf1f4bd412296171..83c83bb301763b49406e64e6221cd10093636ed1 100644 Binary files a/libsndfile-1.0.31.tar.bz2 and b/libsndfile-1.0.31.tar.bz2 differ diff --git a/libsndfile.spec b/libsndfile.spec index 1d869da0bda16af801faa06c1fe9105b471b945a..76ba1f6cd8e0c74d8c5eed6d7d5abad930c37339 100644 --- a/libsndfile.spec +++ b/libsndfile.spec @@ -12,7 +12,7 @@ BuildRequires: sqlite-devel Patch1: 0001-CVE-2021-3246.patch Patch2: 0002-CVE-2021-4156.patch - +Patch3: 003-Marked-unimplemented-dither-enums.patch %description Libsndfile is a C library for reading and writing files containing sampled sound such as MS Windows WAV and the Apple/SGI AIFF format @@ -116,6 +116,9 @@ LD_LIBRARY_PATH=$PWD/src/.libs make check %{_mandir}/man1/sndfile-salvage.1* %changelog +* Wed Dec 28 2022 liying - 1.0.31-2 +- Marked unimplemented dither enums in the header file as such. + * Mon May 16 2022 zhouwenpei - 1.0.31-2 - fix CVE-2021-4156