X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Ffilter_graph.cc;h=86f291fde6fd3ada1095d9a961cbe8125de64c5e;hb=78dd04db5ee5d1aa5fc915f04dc71cb53d33d059;hp=d2427c31faf35957b251320d1d091fce2e54b161;hpb=6de35d058821acc092d2aae75543024a97026b8a;p=dcpomatic.git diff --git a/src/lib/filter_graph.cc b/src/lib/filter_graph.cc index d2427c31f..86f291fde 100644 --- a/src/lib/filter_graph.cc +++ b/src/lib/filter_graph.cc @@ -117,7 +117,7 @@ FilterGraph::FilterGraph (shared_ptr content, dcp::Size s, inputs->pad_idx = 0; inputs->next = 0; - if (avfilter_graph_parse (graph, filters.c_str(), &inputs, &outputs, 0) < 0) { + if (avfilter_graph_parse (graph, filters.c_str(), inputs, outputs, 0) < 0) { throw DecodeError (N_("could not set up filter graph.")); } @@ -147,8 +147,9 @@ FilterGraph::process (AVFrame* frame) if (_copy) { images.push_back (make_pair (shared_ptr (new Image (frame)), av_frame_get_best_effort_timestamp (frame))); } else { - if (av_buffersrc_write_frame (_buffer_src_context, frame) < 0) { - throw DecodeError (N_("could not push buffer into filter chain.")); + int r = av_buffersrc_write_frame (_buffer_src_context, frame); + if (r < 0) { + throw DecodeError (String::compose (N_("could not push buffer into filter chain (%1)."), r)); } while (true) {