[FFmpeg-devel] How to open OpenMP in ffmpeg compile?

Nemo 377307289 at qq.com
Thu Jul 30 15:36:12 CEST 2015


I added "custom.c" to ffmpeg source directory and insert "OBJS-ffmpeg += ffmpeg_opt.o ffmpeg_filter.o custom.o" into Makefile file. I can compile the project.


Then, i used OpenMP in "custom.c", like this:

  #pragma omp parallel for

        for (int i = 0; i < 10; ++i)



I need "-fopenmp" to tell gcc to use OpenMP now. But where should I insert "-fopenmp" to?


Thanks a lost!^ ^


More information about the ffmpeg-devel mailing list