]> iEval git - fdkaac.git/commitdiff
fix reading of caf file without chan chunk
authornu774 <honeycomb77@gmail.com>
Sat, 18 Jan 2014 08:41:57 +0000 (17:41 +0900)
committernu774 <honeycomb77@gmail.com>
Sat, 18 Jan 2014 08:41:57 +0000 (17:41 +0900)
Since channel map was not initialized, first channel was copied to every
other channel.

src/caf_reader.c

index 40162b4cab340058f074cb583e7da03eff050611..89a66c50242629c84173c3c2cf23310e6eb4de59 100644 (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);
This page took 0.020008 seconds and 4 git commands to generate.