From: nu774 Date: Sat, 18 Jan 2014 08:41:57 +0000 (+0900) Subject: fix reading of caf file without chan chunk X-Git-Tag: v0.5.2~1 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=209130e887e1b2634914908200dc3676e89a4e4e;p=fdkaac.git fix reading of caf file without chan chunk Since channel map was not initialized, first channel was copied to every other channel. --- diff --git a/src/caf_reader.c b/src/caf_reader.c index 40162b4..89a66c5 100644 --- a/src/caf_reader.c +++ b/src/caf_reader.c @@ -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);