• Alessandro Ghedini's avatar
    replaygain: correctly parse peak values · 8542f9c4
    Alessandro Ghedini authored
    According to the ReplayGain spec, the peak amplitude may overflow and may result
    in peak amplitude values greater than 1.0 with psychoacoustically coded audio,
    such as MP3. Fully compliant decoders must allow peak overflows.
    
    Additionally, having peak values in the 0<->UINT32_MAX scale makes it more
    difficult for applications to actually use the peak values (e.g. when
    implementing clipping prevention) since values have to be rescaled down.
    
    This patch corrects the peak parsing by removing the rescaling of the decoded
    values between 0 and UINT32_MAX and the 1.0 upper limit.
    Signed-off-by: 's avatarAnton Khirnov <anton@khirnov.net>
    8542f9c4
Name
Last commit
Last update
..
doxy Loading commit data...
examples Loading commit data...
APIchanges Loading commit data...
Doxyfile Loading commit data...
Makefile Loading commit data...
RELEASE_NOTES Loading commit data...
avconv.texi Loading commit data...
avplay.texi Loading commit data...
avprobe.texi Loading commit data...
avserver.conf Loading commit data...
avserver.texi Loading commit data...
avtools-common-opts.texi Loading commit data...
avutil.txt Loading commit data...
bitstream_filters.texi Loading commit data...
build_system.txt Loading commit data...
decoders.texi Loading commit data...
demuxers.texi Loading commit data...
developer.texi Loading commit data...
doxy-wrapper.sh Loading commit data...
encoders.texi Loading commit data...
eval.texi Loading commit data...
faq.texi Loading commit data...
fate.texi Loading commit data...
filters.texi Loading commit data...
general.texi Loading commit data...
git-howto.texi Loading commit data...
git-howto.txt Loading commit data...
indevs.texi Loading commit data...
libavfilter.texi Loading commit data...
metadata.texi Loading commit data...
multithreading.txt Loading commit data...
muxers.texi Loading commit data...
nut.texi Loading commit data...
optimization.txt Loading commit data...
outdevs.texi Loading commit data...
platform.texi Loading commit data...
print_options.c Loading commit data...
protocols.texi Loading commit data...
rate_distortion.txt Loading commit data...
soc.txt Loading commit data...
swscale.txt Loading commit data...
t2h.init Loading commit data...
tablegen.txt Loading commit data...
texi2pod.pl Loading commit data...
viterbi.txt Loading commit data...