Community
cancel
Showing results for 
Search instead for 
Did you mean: 
shyaki
Beginner
87 Views

Access violation exception in h264_enc

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
87 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

shyaki
Beginner
87 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.

Reply