Skip to content

Commit 8a3f8cb

Browse files
committed
added missing const to track_typed::make_copy
1 parent d47b228 commit 8a3f8cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/acl/compression/track.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ namespace acl
427427
// Copy the data manually to avoid preserving the stride
428428
sample_type* data_copy = reinterpret_cast<sample_type*>(allocator.allocate(data_size));
429429
for (uint32_t index = 0; index < num_samples; ++index)
430-
data_copy[index] = *reinterpret_cast<sample_type*>(data_raw + (index * stride));
430+
data_copy[index] = *reinterpret_cast<const sample_type*>(data_raw + (index * stride));
431431

432432
return track_typed<track_type_>(&allocator, reinterpret_cast<uint8_t*>(data_copy), num_samples, sizeof(sample_type), data_size, sample_rate, desc);
433433
}

0 commit comments

Comments
 (0)