From 57aa91419dc85f235aa54a012c28ab5f482fa408 Mon Sep 17 00:00:00 2001 From: nu774 Date: Mon, 17 Feb 2014 13:51:20 +0900 Subject: [PATCH] fix: CAF chan chunk using channel bitmap was not correctly handled --- src/pcm_readhelper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)