am c60634d8: Merge "Camera2: Doc updates for aeExposureCompensation." into lmp-mr1-dev
automerge: 658a2e6
* commit '658a2e66bec074768687a968f2929ee00de24710':
Camera2: Doc updates for aeExposureCompensation.
diff --git a/audio_utils/include/audio_utils/primitives.h b/audio_utils/include/audio_utils/primitives.h
index 0785358..060aefb 100644
--- a/audio_utils/include/audio_utils/primitives.h
+++ b/audio_utils/include/audio_utils/primitives.h
@@ -277,7 +277,7 @@
* src Source buffer
* count Number of stereo frames to downmix
* The destination and source buffers must be completely separate (non-overlapping).
- * The current implementation truncates the sum rather than dither, but this may change.
+ * The current implementation truncates the mean rather than dither, but this may change.
*/
void downmix_to_mono_i16_from_stereo_i16(int16_t *dst, const int16_t *src, size_t count);
diff --git a/audio_utils/tinysndfile.c b/audio_utils/tinysndfile.c
index 0d9a711..30befc5 100644
--- a/audio_utils/tinysndfile.c
+++ b/audio_utils/tinysndfile.c
@@ -97,6 +97,7 @@
size_t remaining = riffSize - 4;
int hadFmt = 0;
int hadData = 0;
+ long dataTell = 0L;
while (remaining >= 8) {
unsigned char chunk[8];
actual = fread(chunk, sizeof(char), sizeof(chunk), stream);
@@ -198,6 +199,10 @@
}
handle->remaining = chunkSize / handle->bytesPerFrame;
handle->info.frames = handle->remaining;
+ dataTell = ftell(stream);
+ if (chunkSize > 0) {
+ fseek(stream, (long) chunkSize, SEEK_CUR);
+ }
hadData = 1;
} else if (!memcmp(&chunk[0], "fact", 4)) {
// ignore fact
@@ -222,6 +227,7 @@
fprintf(stderr, "missing data\n");
goto close;
}
+ (void) fseek(stream, dataTell, SEEK_SET);
*info = handle->info;
return handle;