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:
nu774 2014-01-18 17:41:57 +09:00
parent b6ab92a9e7
commit 209130e887
1 changed files with 1 additions and 0 deletions

View File

@ -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);