mirror of
https://github.com/nu774/fdkaac.git
synced 2024-12-28 08:10:43 +01:00
fix: CAF chan chunk using channel bitmap was not correctly handled
This commit is contained in:
parent
b3dcf08647
commit
57aa91419d
@ -204,7 +204,7 @@ int apple_chan_chunk(pcm_io_context_t *io, uint32_t chunk_size,
|
|||||||
|
|
||||||
switch (mChannelLayoutTag) {
|
switch (mChannelLayoutTag) {
|
||||||
case kAudioChannelLayoutTag_UseChannelBitmap:
|
case kAudioChannelLayoutTag_UseChannelBitmap:
|
||||||
ENSURE(bitcount(mask) == nchannels);
|
ENSURE(bitcount(mChannelBitmap) == nchannels);
|
||||||
TRY_IO(pcm_skip(io, chunk_size - 12));
|
TRY_IO(pcm_skip(io, chunk_size - 12));
|
||||||
fmt->channel_mask = mChannelBitmap;
|
fmt->channel_mask = mChannelBitmap;
|
||||||
for (i = 0; i < nchannels; ++i)
|
for (i = 0; i < nchannels; ++i)
|
||||||
|
Loading…
Reference in New Issue
Block a user