• Max Kellermann's avatar
    pcm/PcmDop: round down to the nearest multiple of 4 DSD bytes · a2340c31
    Max Kellermann authored
    There was a discrepancy between what was written to the buffer and the
    size returned by pcm_dsd_to_dop(): the "for" loop uses num_frames/2,
    rounding down, while the return value is num_samples which is
    num_frames*channels, without rounding.  This could cause undefined
    data at the end of the destination buffer if the source buffer size
    was not aligned to multiples of 8 bytes (4 DSD bytes per channel).
    
    The latter however can occur in the 0.21 branch after commit
    a06bf388
    
    Closes #233
    a2340c31
Name
Last commit
Last update
..
dsd2pcm Loading commit data...
ChannelsConverter.cxx Loading commit data...
ChannelsConverter.hxx Loading commit data...
ConfiguredResampler.cxx Loading commit data...
ConfiguredResampler.hxx Loading commit data...
Dsd16.cxx Loading commit data...
Dsd16.hxx Loading commit data...
Dsd32.cxx Loading commit data...
Dsd32.hxx Loading commit data...
FallbackResampler.cxx Loading commit data...
FallbackResampler.hxx Loading commit data...
FloatConvert.hxx Loading commit data...
FormatConverter.cxx Loading commit data...
FormatConverter.hxx Loading commit data...
GlueResampler.cxx Loading commit data...
GlueResampler.hxx Loading commit data...
Interleave.cxx Loading commit data...
Interleave.hxx Loading commit data...
LibsamplerateResampler.cxx Loading commit data...
LibsamplerateResampler.hxx Loading commit data...
Neon.hxx Loading commit data...
Order.cxx Loading commit data...
Order.hxx Loading commit data...
PcmBuffer.cxx Loading commit data...
PcmBuffer.hxx Loading commit data...
PcmChannels.cxx Loading commit data...
PcmChannels.hxx Loading commit data...
PcmConvert.cxx Loading commit data...
PcmConvert.hxx Loading commit data...
PcmDither.cxx Loading commit data...
PcmDither.hxx Loading commit data...
PcmDop.cxx Loading commit data...
PcmDop.hxx Loading commit data...
PcmDsd.cxx Loading commit data...
PcmDsd.hxx Loading commit data...
PcmExport.cxx Loading commit data...
PcmExport.hxx Loading commit data...
PcmFormat.cxx Loading commit data...
PcmFormat.hxx Loading commit data...
PcmMix.cxx Loading commit data...
PcmMix.hxx Loading commit data...
PcmPack.cxx Loading commit data...
PcmPack.hxx Loading commit data...
PcmPrng.hxx Loading commit data...
PcmUtils.hxx Loading commit data...
Resampler.hxx Loading commit data...
SampleFormat.cxx Loading commit data...
SampleFormat.hxx Loading commit data...
ShiftConvert.hxx Loading commit data...
Silence.cxx Loading commit data...
Silence.hxx Loading commit data...
SoxrResampler.cxx Loading commit data...
SoxrResampler.hxx Loading commit data...
Traits.hxx Loading commit data...
Volume.cxx Loading commit data...
Volume.hxx Loading commit data...