From: nu774 Date: Mon, 17 Feb 2014 04:51:20 +0000 (+0900) Subject: fix: CAF chan chunk using channel bitmap was not correctly handled X-Git-Tag: v0.5.3~1 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=57aa91419dc85f235aa54a012c28ab5f482fa408;p=fdkaac.git fix: CAF chan chunk using channel bitmap was not correctly handled --- diff --git a/src/pcm_readhelper.c b/src/pcm_readhelper.c index 5a2b037..9087721 100644 --- a/src/pcm_readhelper.c +++ b/src/pcm_readhelper.c @@ -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)