1
0
mirror of https://github.com/nu774/fdkaac.git synced 2024-12-28 16:20:29 +01:00

fix: CAF chan chunk using channel bitmap was not correctly handled

This commit is contained in:
nu774 2014-02-17 13:51:20 +09:00
parent b3dcf08647
commit 57aa91419d

View File

@ -204,7 +204,7 @@ int apple_chan_chunk(pcm_io_context_t *io, uint32_t chunk_size,
switch (mChannelLayoutTag) {
case kAudioChannelLayoutTag_UseChannelBitmap:
ENSURE(bitcount(mask) == nchannels);
ENSURE(bitcount(mChannelBitmap) == nchannels);
TRY_IO(pcm_skip(io, chunk_size - 12));
fmt->channel_mask = mChannelBitmap;
for (i = 0; i < nchannels; ++i)