Merge pull request #767 from troyrollo/imagemagick-cassert-error-workaround

Avoid a bug in ImageMagick or cassert headers
This commit is contained in:
Frank Dana
2021-11-02 06:37:28 -04:00
committed by GitHub
11 changed files with 44 additions and 15 deletions

View File

@@ -10,6 +10,8 @@
//
// SPDX-License-Identifier: LGPL-3.0-or-later
#include <fstream>
#include "ChunkReader.h"
#include "Exceptions.h"
#include "FFmpegReader.h"

View File

@@ -14,14 +14,17 @@
#include "Exceptions.h"
#include "FFmpegReader.h"
#include "FrameMapper.h"
#ifdef USE_IMAGEMAGICK
#include "ImageReader.h"
#include "TextReader.h"
#endif
#include "QtImageReader.h"
#include "ChunkReader.h"
#include "DummyReader.h"
#include "Timeline.h"
#include "ZmqLogger.h"
#ifdef USE_IMAGEMAGICK
#include "MagickUtilities.h"
#include "ImageReader.h"
#include "TextReader.h"
#endif
#include <Qt>

View File

@@ -18,6 +18,7 @@
#include "FFmpegReader.h"
#include "Exceptions.h"
#include "Timeline.h"
#include "ZmqLogger.h"
#include <thread> // for std::this_thread::sleep_for
#include <chrono> // for std::chrono::milliseconds

View File

@@ -10,6 +10,11 @@
//
// SPDX-License-Identifier: LGPL-3.0-or-later
#include <thread> // for std::this_thread::sleep_for
#include <chrono> // for std::chrono::milliseconds
#include <sstream>
#include <iomanip>
#include "Frame.h"
#include <OpenShotAudio.h>
@@ -27,8 +32,9 @@
#include <QPointF>
#include <QWidget>
#include <thread> // for std::this_thread::sleep_for
#include <chrono> // for std::chrono::milliseconds
#ifdef USE_IMAGEMAGICK
#include "MagickUtilities.h"
#endif
using namespace std;
using namespace openshot;

View File

@@ -21,24 +21,28 @@
#undef int64
#endif
#include <iomanip>
#include <sstream>
#include <queue>
#include <QApplication>
#include <QImage>
#include <memory>
#include <unistd.h>
#include "ZmqLogger.h"
#include "ChannelLayouts.h"
#include "AudioBufferSource.h"
#include "AudioResampler.h"
#include "Fraction.h"
#include <OpenShotAudio.h>
#include <QColor>
#include <QImage>
#ifdef USE_IMAGEMAGICK
#include "MagickUtilities.h"
// Forward declare Magick::Image
namespace Magick {
class Image;
}
#endif
class QApplication;
namespace openshot
{
/**

View File

@@ -17,6 +17,7 @@
#include "FrameMapper.h"
#include "Exceptions.h"
#include "Clip.h"
#include "ZmqLogger.h"
using namespace std;
using namespace openshot;

View File

@@ -14,6 +14,13 @@
#ifdef USE_IMAGEMAGICK
// Avoid a bug in the interaction between ImageMagick
// and the standard C insertion headers, which can
// cause functions used by macros in the standard C
// assertion code to be put in an ImageMagick library
// namespace instead of the global namespace
#include <cassert>
// Exclude a warning message with IM6 headers
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wignored-qualifiers"

View File

@@ -13,6 +13,7 @@
#include "PlayerPrivate.h"
#include "Exceptions.h"
#include "ZmqLogger.h"
#include <thread> // for std::this_thread::sleep_for
#include <chrono> // for std::chrono milliseconds, high_resolution_clock

View File

@@ -12,8 +12,9 @@
#include "VideoCacheThread.h"
#include "Exceptions.h"
#include <algorithm>
#include "ZmqLogger.h"
#include <algorithm>
#include <thread> // for std::this_thread::sleep_for
#include <chrono> // for std::chrono::milliseconds

View File

@@ -12,6 +12,7 @@
// SPDX-License-Identifier: LGPL-3.0-or-later
#include "VideoPlaybackThread.h"
#include "ZmqLogger.h"
namespace openshot
{

View File

@@ -11,6 +11,8 @@
//
// SPDX-License-Identifier: LGPL-3.0-or-later
#include <fstream>
#include "TrackedObjectBBox.h"
#include "Clip.h"