A whole load of UTF-8/-16 confusion fixes for Windows.
[dcpomatic.git] / src / lib / filter_graph.cc
index 7c4df8903e18e48d11abbef510b8c5ca548f4a2d..cd5d198079683f588c2a12c68a1648e4a5136e29 100644 (file)
@@ -33,6 +33,7 @@ extern "C" {
 #include "filter.h"
 #include "exceptions.h"
 #include "image.h"
+#include "ffmpeg_content.h"
 
 #include "i18n.h"
 
@@ -85,9 +86,7 @@ FilterGraph::FilterGraph (shared_ptr<const FFmpegContent> content, libdcp::Size
          << "time_base=1/1:"
          << "pixel_aspect=1/1";
 
-       int r;
-
-       if ((r = avfilter_graph_create_filter (&_buffer_src_context, buffer_src, "in", a.str().c_str(), 0, graph)) < 0) {
+       if (avfilter_graph_create_filter (&_buffer_src_context, buffer_src, "in", a.str().c_str(), 0, graph) < 0) {
                throw DecodeError (N_("could not create buffer source"));
        }