mirror of
https://github.com/nu774/fdkaac.git
synced 2025-02-17 03:40:37 +01:00
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));
|
memcpy(&reader->io, io, sizeof(pcm_io_context_t));
|
||||||
reader->tag_callback = tag_callback;
|
reader->tag_callback = tag_callback;
|
||||||
reader->tag_ctx = tag_ctx;
|
reader->tag_ctx = tag_ctx;
|
||||||
|
memcpy(reader->chanmap, "\000\001\002\003\004\005\006\007", 8);
|
||||||
|
|
||||||
if (caf_parse(reader, &data_length) < 0) {
|
if (caf_parse(reader, &data_length) < 0) {
|
||||||
free(reader);
|
free(reader);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user