When running the program, Cuda memory continues to increase until there is not enough memory to make an error. I am test using rtsp stream.
Activity
Kisshine007 commentedon Feb 7, 2022
/src/decoder.cpp
@@ -83,5 +83,6 @@ videoFrameList* videoDecoder_decode(videoDecoderHandle handle, u_int8_t* in, siz
cudaMemcpy((void*)(frameList->pFrames+iframeList->perFrameSize), (uint8_t)dpFrame, output_size, cudaMemcpyDeviceToHost);
}
cuMemFree(dpFrame);
cuMemFree(nv12Frame); // Add cuMemFree
return frameList;
}
After add cuMemFree, the program running is ok.