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

Access violation exception in h264_enc

shyaki
Beginner
312 Views

When I used umc_video_enc.exe to encode a h264 file, I received the access violation exception during calling omp_set_num_threads in CheckEncoderParameters of H264Encoder.

The app and the encoder lib were both compiled in visual studio 2005. OPENMP was enabled.

What could possible cause this problem?

0 Kudos
2 Replies
Vladimir_Dudnik
Employee
312 Views
Hello,
there should not be any problems with OpenMP. You may ensure that if you build IPP sample with build script provided.
Our expert guess you may not call Init and then in code like this you will access by NULL pointer

omp_set_num_threads(core_enc->m_info.numThreads);

Regards,
Vladimir

0 Kudos
shyaki
Beginner
312 Views
Quoting - vdudnik
Hello,
there should not be any problems with OpenMP. You may ensure that if you build IPP sample with build script provided.
Our expert guess you may not call Init and then in code like this you will access by NULL pointer

omp_set_num_threads(core_enc->m_info.numThreads);

Regards,
Vladimir

This is very wierd.

Even when I call omp_set_num_threads(1), the crash is still there.

0 Kudos
Reply