Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

bug in jpeg encoder when openmp is enabled

thesynapse
Beginner
525 Views
Here is a bug into w_ipp-samples_p_6.0.0.127 -> audio-video-codecs -> jpeg
When openmp is enabled memory is leak, it leak in jpegenc.cpp, there is not destroyed the locks, just freed the memory(ippFree(locks);) but not destroyed.
The decision is:
for(i = 0; i < m_numyMCU; i++)
{
omp_destroy_lock(&locks);
}
ippFree(locks);

ps: this error have place into functions: EncodeScanBaseline,EncodeScanBaseline_P, EncodeScanExtended
0 Kudos
1 Reply
Vladimir_Dudnik
Employee
525 Views
Thanks for notice onthis. You are correct. This bug was fixed in UIC JPEG codec but not in UMC MJPEG codec. We will fix this in the next release.

Regards,
Vladimir
0 Kudos
Reply