alsa-utils/aplay
Takashi Iwai 5c4bf63a94 aplay: Handle 16bit sample negative overflow in peak calculations
The handling of 16bit samples in the peak calculations has a bug when
a sample with 0x8000 is passed.  As abs() treats 32bit int, it returns
0x8000.  And yet the code stores back into 16bit value again.

To fix that overflow, use 32bit value (i.e. val instead of sval) for
the further calculations.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
2021-08-24 09:53:53 +02:00
..
aplay.1 minor aplay man page correction 2020-10-06 13:19:00 +02:00
aplay.c aplay: Handle 16bit sample negative overflow in peak calculations 2021-08-24 09:53:53 +02:00
formats.h aplay: Add the support for big-endian WAV format (RIFX) 2012-12-13 10:53:19 +01:00
Makefile.am Makefiles - use AM_CPPFLAGS instead INCLUDES 2014-05-07 10:55:59 +02:00