X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Ffilter_graph.cc;h=cd5d198079683f588c2a12c68a1648e4a5136e29;hb=2d5b8cdde08044d323aa7193dfac6c9f8bca7131;hp=7c4df8903e18e48d11abbef510b8c5ca548f4a2d;hpb=c719feb3cc4a5627827f8576a9b34756f701d59d;p=dcpomatic.git diff --git a/src/lib/filter_graph.cc b/src/lib/filter_graph.cc index 7c4df8903..cd5d19807 100644 --- a/src/lib/filter_graph.cc +++ b/src/lib/filter_graph.cc @@ -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 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")); }