134 Commits

Author SHA1 Message Date
Felix Lange
ca2008903f sndfile-convert: fix typo in error message (#793)
Co-authored-by: evpobr <evpobr@gmail.com>
2021-11-24 09:52:36 +05:00
David Seifert
4b64fd767a programs/sndfile-deinterleave.c: fix broken calloc call
Fixes #783
2021-10-24 14:26:31 +02:00
nia
3ead8d2266 sndfile-play: Add NetBSD support (#776)
* sndfile-play: Use Sun-compatible audio device on NetBSD

Keep the gain unchanged. Avoids distortion from playing sounds
too loudly and preserves the user's existing volume settings.
2021-09-21 14:15:14 +02:00
papadave66
f65e8bc9d1 Fix duplicated case value of ESTRPIPE on BSD 2021-09-08 13:40:59 +05:00
evpobr
2421c8501e sndfile-info: Remove duplicate array 2021-09-01 11:55:31 +05:00
Arthur Taylor
fe51e9b093 programs: Add MPEG related handling, other misc Ogg handling fixes.
- Add MPEG major and minor formats to string printing routines.

- Don't warn when adding a broadcast chunk to a MPEG WAV.

- sndfile-convert: Infer that ".ogg" suffix means Ogg+Vorbis. This
  aligns with Xiph.org

- sndfile-info: Properly calculate the dB of Vorbis and Opus files. The
  handling of the allowable sample range of these files may need to be
  investigated in future.
2021-04-03 13:56:09 -07:00
Arthur Taylor
fe2ed77134 Add MPEG FORMAT to SF_COMMAND_*FORMAT, program common. 2021-03-25 10:26:15 -07:00
evpobr
6fb0313563 sndfile-interleave: Fix large stack allocation 2021-03-16 16:30:07 +05:00
evpobr
19a4498736 sndfile-deinterleave: Fix resource cleanup 2021-03-16 16:30:07 +05:00
evpobr
6dee7120ab sndfile-salvage: Handle files > 4 GB on Windows OS 2021-03-06 21:44:33 +05:00
evpobr
36c5198d91 common: Fix regression after 4ff3b84 2021-03-06 12:00:31 +05:00
evpobr
61bcb5e979 Fix previous commit 2021-03-06 11:54:08 +05:00
evpobr
4ff3b84eff msvc: Fix annoying conversion warnings #304 2021-03-06 11:41:47 +05:00
evpobr
3b8e3ef807 sndfile-deinterleave: Fix large stack allocation 2021-03-04 20:28:58 +05:00
evpobr
c29a002749 sndfile-info: Use proper format specifiers 2021-02-25 12:47:27 +05:00
evpobr
e01ee91591 Fix Clang warnings 2020-09-04 10:03:09 +05:00
Fabian Greffrath
2ccb23fe72 sfe_copy_data_fp: check value of "max" variable for being normal
and check elements of the data[] array for being finite.

Both checks use functions provided by the <math.h> header as declared
by the C99 standard.

Fixes #317
CVE-2017-14245
CVE-2017-14246
2020-06-20 18:18:11 +10:00
Arthur Taylor
65e13303ae sndfile-convert: Handle gsm, vox and opus extensions the same way
Closes: https://github.com/erikd/libsndfile/pull/498
2020-04-05 20:07:01 +10:00
Moonbase59
3a57ea117b Add BWF v2 loudness parameters
Closes: https://github.com/erikd/libsndfile/issues/479
2019-08-27 07:28:25 +10:00
Erik de Castro Lopo
25824cb914 sndfile-convert: Close input file on output format error 2019-04-22 02:48:50 +10:00
Erik de Castro Lopo
df55170ce4 sndfile-convert: Fix conversion to/from Opus 2019-04-22 02:48:50 +10:00
Erik de Castro Lopo
238ee50429 programs/sndfile-convert.c: Add -opus option 2019-02-23 18:30:02 +11:00
Marcel Waldvogel
c0dd8b4a4f Handle snprintf() format-truncation warnings 2019-01-03 15:21:05 +11:00
Brett T. Warden
aaea680337 Check MAX_CHANNELS in sndfile-deinterleave
Allocated buffer has space for only 16 channels. Verify that input file
meets this limit.

Fixes #397
2018-08-29 08:20:56 +10:00
Jonathan Wakely
2241075e47 sndfile-convert: Check if conversion failed due to no. of channels
This fixes the problem noted in #43 where attempting to convert a stereo
WAV to SDS gives a misleading error about the codec, when the real problem
is that the output format only supports mono not stereo.

Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com>
2018-02-03 16:12:42 +11:00