Hello,
I'm using a DM365 evm and dvsdk_2_10_01_18 and noticed that the unmodified encode demo has a memory leak.
Chasing this, I found that in the file writer.c, commenting out the statement that writes the code to a file:
if (fwrite(Buffer_getUserPtr(hOutBuf),
Buffer_getNumBytesUsed(hOutBuf), 1, outFile) != 1) {
ERR("Error writing the encoded data to video file\n");
cleanup(THREAD_FAILURE);
}
will stop the leak. BUT, I'm not sure how to fix this as I still need to write out the encoded data.
Thanks,
-Vim