From f792d3e43e98a63dd1f9caa768affad8ea27e895 Mon Sep 17 00:00:00 2001 From: ctl-ly Date: Wed, 28 Dec 2022 22:19:42 +0800 Subject: [PATCH] Marked unimplemented dither enums in the header file as such --- 0003-Marked-unimplemented-dither-enums.patch | 34 ++++++++++++++++++++ libsndfile.spec | 4 +++ 2 files changed, 38 insertions(+) create mode 100644 0003-Marked-unimplemented-dither-enums.patch diff --git a/0003-Marked-unimplemented-dither-enums.patch b/0003-Marked-unimplemented-dither-enums.patch new file mode 100644 index 0000000..6409bcc --- /dev/null +++ b/0003-Marked-unimplemented-dither-enums.patch @@ -0,0 +1,34 @@ +From 46047c3289a48dbfb63ef2c57c3f9f62cc6956ce Mon Sep 17 00:00:00 2001 +From: ctl-ly +Date: Wed, 28 Dec 2022 22:15:15 +0800 +Subject: [PATCH] Marked unimplemented dither enums in the header file as such + +--- + include/sndfile.h.in | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/include/sndfile.h.in b/include/sndfile.h.in +index 917ff4b..970fb26 100644 +--- a/include/sndfile.h.in ++++ b/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.spec b/libsndfile.spec index 1d869da..55f9f5f 100644 --- a/libsndfile.spec +++ b/libsndfile.spec @@ -12,6 +12,7 @@ BuildRequires: sqlite-devel Patch1: 0001-CVE-2021-3246.patch Patch2: 0002-CVE-2021-4156.patch +Patch3: 0003-Marked-unimplemented-dither-enums.patch %description Libsndfile is a C library for reading and writing files containing @@ -116,6 +117,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 -- Gitee