Skip to content

Commit

Permalink
raw出力時のメモリリークを修正。 ( #638 )
Browse files Browse the repository at this point in the history
  • Loading branch information
rigaya committed Oct 31, 2024
1 parent bb95921 commit 14b44e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions NVEncCore/NVEncCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1067,6 +1067,7 @@ NVENCSTATUS NVEncCore::ProcessOutput(const EncodeBuffer *pEncodeBuffer) {
}
PrintMes(RGY_LOG_TRACE, _T("Output frame %d: size %zu (%d), pts %lld, dts %lld\n"), m_pStatus->m_sData.frameOut, bitstream.size(), lockBitstreamData.alphaLayerSizeInBytes, bitstream.pts(), bitstream.dts());
auto outErr = m_pFileWriter->WriteNextFrame(&bitstream);
bitstream.clear();
nvStatus = m_dev->encoder()->NvEncUnlockBitstream(pEncodeBuffer->stOutputBfr.hBitstreamBuffer);
if (nvStatus == NV_ENC_SUCCESS && outErr != RGY_ERR_NONE) {
nvStatus = NV_ENC_ERR_GENERIC;
Expand Down

0 comments on commit 14b44e6

Please sign in to comment.