Fix incorrect alpha channel scaling with RGBA64.
[dcpomatic.git] / src / lib / video_filter_graph.cc
index 26f858437173294e80cb1691b708ab6ae000254e..d5840c6d3b6790e8364599b4416f1ac232390ac4 100644 (file)
 
 
 #include "compose.hpp"
+#include "dcpomatic_assert.h"
+#include "exceptions.h"
 #include "image.h"
-#include "scope_guard.h"
 #include "video_filter_graph.h"
+#include <dcp/scope_guard.h>
 extern "C" {
 #include <libavfilter/buffersrc.h>
 #include <libavfilter/buffersink.h>
@@ -61,7 +63,7 @@ VideoFilterGraph::process(shared_ptr<const Image> image)
                throw std::bad_alloc();
        }
 
-       ScopeGuard sg = [&frame]() { av_frame_free(&frame); };
+       dcp::ScopeGuard sg = [&frame]() { av_frame_free(&frame); };
 
        for (int i = 0; i < image->planes(); ++i) {
                frame->data[i] = image->data()[i];