From 91339bf1fac8da8c4414698bd297d98c78121fcc Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Wed, 18 Aug 2021 18:52:41 +0200 Subject: [PATCH] (Windows) Fixed a MinGW compiler error. --- es-core/src/components/VideoFFmpegComponent.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/es-core/src/components/VideoFFmpegComponent.cpp b/es-core/src/components/VideoFFmpegComponent.cpp index 4209ff996..923c02528 100644 --- a/es-core/src/components/VideoFFmpegComponent.cpp +++ b/es-core/src/components/VideoFFmpegComponent.cpp @@ -6,6 +6,8 @@ // Video player based on FFmpeg. // +#define DEBUG_VIDEO false + #include "components/VideoFFmpegComponent.h" #include "AudioManager.h" @@ -13,7 +15,7 @@ #include "Window.h" #include "resources/TextureResource.h" -#define DEBUG_VIDEO false +#include enum AVHWDeviceType VideoFFmpegComponent::sDeviceType = AV_HWDEVICE_TYPE_NONE; enum AVPixelFormat VideoFFmpegComponent::sPixelFormat = AV_PIX_FMT_NONE; @@ -146,10 +148,10 @@ void VideoFFmpegComponent::render(const glm::mat4& parentTrans) } // clang-format off - vertices[0] = {{0.0f , 0.0f }, {0.0f, 0.0f}, color}; - vertices[1] = {{0.0f , mSize.y}, {0.0f, 1.0f}, color}; - vertices[2] = {{mSize.x , 0.0f }, {1.0f, 0.0f}, color}; - vertices[3] = {{mSize.x , mSize.y}, {1.0f, 1.0f}, color}; + vertices[0] = {{0.0f, 0.0f }, {0.0f, 0.0f}, color}; + vertices[1] = {{0.0f, mSize.y}, {0.0f, 1.0f}, color}; + vertices[2] = {{mSize.x, 0.0f }, {1.0f, 0.0f}, color}; + vertices[3] = {{mSize.x, mSize.y}, {1.0f, 1.0f}, color}; // clang-format on // Round vertices.