From: Ronag Date: Thu, 4 Aug 2011 08:55:15 +0000 (+0000) Subject: git-svn-id: https://casparcg.svn.sourceforge.net/svnroot/casparcg/server/branches... X-Git-Tag: 2.0.1~286 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=d14ad01d2a3da0fd4da383c42bbcee07572a0f88;p=casparcg git-svn-id: https://casparcg.svn.sourceforge.net/svnroot/casparcg/server/branches/2.0.0.2@1053 362d55ac-95cf-4e76-9f9a-cbaa9c17b72d --- diff --git a/modules/ffmpeg/tbb_avcodec.cpp b/modules/ffmpeg/tbb_avcodec.cpp index 2789fcbed..15d5a2598 100644 --- a/modules/ffmpeg/tbb_avcodec.cpp +++ b/modules/ffmpeg/tbb_avcodec.cpp @@ -9,6 +9,7 @@ #include #include +#include #include #include @@ -42,6 +43,7 @@ int thread_execute2(AVCodecContext* s, int (*func)(AVCodecContext* c2, void* arg tbb::atomic counter; counter = 0; + CASPAR_ASSERT(tbb::tbb_thread::hardware_concurrency() < 16); // Note: this will probably only work when tbb::task_scheduler_init::num_threads() < 16. tbb::parallel_for(tbb::blocked_range(0, count, 2), [&](const tbb::blocked_range &r) {