Community
cancel
Showing results for 
Search instead for 
Did you mean: 
thesynapse
Beginner
65 Views

bug in jpeg encoder when openmp is enabled

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
65 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
Reply