Skip to content

Commit

Permalink
writer: set bounds at the end of the copying
Browse files Browse the repository at this point in the history
  • Loading branch information
MrKepzie committed Nov 18, 2015
1 parent 234e0b3 commit 21249d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion IOSupport/GenericWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,6 @@ GenericWriterPlugin::fetchPlaneConvertAndCopy(const std::string& plane,
size_t memSize = (renderWindow.y2 - renderWindow.y1) * tmpRowBytes;
*tmpMem = new OFX::ImageMemory(memSize,this);
srcImgsHolder->addMemory(*tmpMem);
*bounds = renderWindow;
*tmpMemPtr = (float*)(*tmpMem)->lock();
if (!*tmpMemPtr) {
OFX::throwSuiteStatusException(kOfxStatErrMemory);
Expand Down Expand Up @@ -543,6 +542,8 @@ GenericWriterPlugin::fetchPlaneConvertAndCopy(const std::string& plane,
copyPixelData(renderWindow, srcPixelData, *bounds, pixelComponents, pixelComponentsCount, bitDepth, srcRowBytes, dstImg.get());

}
*bounds = renderWindow;

} // if (renderWindowIsBounds && isOCIOIdentity && (noPremult || userPremult == pluginExpectedPremult))

}
Expand Down

0 comments on commit 21249d2

Please sign in to comment.