* 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.
- 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.
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
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>