#pragma once
-#ifdef _DEBUG
+#if defined _DEBUG && defined _MSC_VER
#include <crtdbg.h>
#endif
#include <boost/thread/mutex.hpp>
#include <boost/thread/once.hpp>
#include <boost/thread/thread.hpp>
-#include <boost/timer.hpp>
-#include <crtdbg.h>
#include <cstdint>
#include <cstdio>
#include <deque>
#include <tbb/tbb_thread.h>
#include <unordered_map>
#include <vector>
+#include <common/timer.h>
#pragma warning(push, 1)
-extern "C"
+extern "C"
{
#define __STDC_CONSTANT_MACROS
#define __STDC_LIMIT_MACROS
#include <libavcodec/avcodec.h>
- #include <libavfilter/avcodec.h>
#include <libavfilter/avfilter.h>
#include <libavfilter/avfiltergraph.h>
#include <libavfilter/buffersink.h>