]> iEval git - fdkaac.git/commitdiff
fix: CAF chan chunk using channel bitmap was not correctly handled
authornu774 <honeycomb77@gmail.com>
Mon, 17 Feb 2014 04:51:20 +0000 (13:51 +0900)
committernu774 <honeycomb77@gmail.com>
Mon, 17 Feb 2014 04:51:20 +0000 (13:51 +0900)
src/pcm_readhelper.c

index 5a2b037b49a5cc2c71319e44b220518aa737e2a8..9087721d17ef3dfc3fdac6c9c638e72bd95f0950 100644 (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)
This page took 0.027085 seconds and 4 git commands to generate.