mirror of https://github.com/nu774/fdkaac.git
fix reading of caf file without chan chunk
Since channel map was not initialized, first channel was copied to every other channel.
This commit is contained in:
parent
b6ab92a9e7
commit
209130e887
|
@ -225,6 +225,7 @@ pcm_reader_t *caf_open(pcm_io_context_t *io,
|
|||
memcpy(&reader->io, io, sizeof(pcm_io_context_t));
|
||||
reader->tag_callback = tag_callback;
|
||||
reader->tag_ctx = tag_ctx;
|
||||
memcpy(reader->chanmap, "\000\001\002\003\004\005\006\007", 8);
|
||||
|
||||
if (caf_parse(reader, &data_length) < 0) {
|
||||
free(reader);
|
||||
|
|
Loading…
Reference in New Issue