Fix reffing of the AVFrame output by the decoder.
authorCarl Hetherington <cth@carlh.net>
Tue, 30 Apr 2013 15:46:21 +0000 (16:46 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 30 Apr 2013 15:46:21 +0000 (16:46 +0100)
src/lib/filter_graph.cc

index 47f99da143de6a4e1327f8f597f7c6510b0eada8..f0c49b37c07e6a12c0969ff61f2e7b3da0eb6bc2 100644 (file)
@@ -134,7 +134,7 @@ FilterGraph::process (AVFrame* frame)
 {
        list<shared_ptr<Image> > images;
        
-       if (av_buffersrc_add_frame (_buffer_src_context, frame) < 0) {
+       if (av_buffersrc_write_frame (_buffer_src_context, frame) < 0) {
                throw DecodeError (N_("could not push buffer into filter chain."));
        }