Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed the next pointer offset condition to set data size #328

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
7 changes: 2 additions & 5 deletions base/include/RawImagePlanarMetadata.h
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,8 @@ class RawImagePlanarMetadata : public FrameMetadata
dataSize = 0;
for (auto i = 0; i < channels; i++)
{
if (nextPtrOffset[i] == NOT_SET_NUM)
{
nextPtrOffset[i] = dataSize;
dataSize += step[i] * height[i];
}
nextPtrOffset[i] = dataSize;
dataSize += step[i] * height[i];
}
}

Expand Down
Loading