Skip to content

Commit

Permalink
Merge branch '238-implement-s3-sinks-pt-4' into 238-implement-s3-sink…
Browse files Browse the repository at this point in the history
…s-pt-5
  • Loading branch information
aliddell committed Jul 6, 2024
2 parents 9fc300b + df8a50f commit b6f0cc5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/zarr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -690,8 +690,12 @@ template<typename T>
void
test_average_frame_inner(const SampleType& stype)
{
auto* src = (VideoFrame*)malloc(sizeof(VideoFrame) + 9 * sizeof(T));
src->bytes_of_frame = common::align_up(sizeof(*src) + 9 * sizeof(T), 8);
const size_t bytes_of_frame =
common::align_up(sizeof(VideoFrame) + 9 * sizeof(T), 8);
auto* src = (VideoFrame*)malloc(bytes_of_frame);
CHECK(src);

src->bytes_of_frame = bytes_of_frame;
src->shape = {
.dims = {
.channels = 1,
Expand Down

0 comments on commit b6f0cc5

Please sign in to comment.