summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-01-01 17:01:07 +0000
committerCarl Hetherington <cth@carlh.net>2014-01-01 17:01:07 +0000
commitb9567ce4b9212c3ed386592d318eea0e639472c0 (patch)
tree70af2cb0d82df42e6acdc99b9d579ccbf11c1683 /src/lib
parent18a11ac88390784a19c21093d05c39c328366b5f (diff)
Bump ffmpeg and try to fix small leak with filters.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/ffmpeg.cc4
-rw-r--r--src/lib/filter_graph.cc3
2 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/ffmpeg.cc b/src/lib/ffmpeg.cc
index 53d12419a..4bf941523 100644
--- a/src/lib/ffmpeg.cc
+++ b/src/lib/ffmpeg.cc
@@ -62,7 +62,7 @@ FFmpeg::~FFmpeg ()
}
}
- avcodec_free_frame (&_frame);
+ av_frame_free (&_frame);
avformat_close_input (&_format_context);
}
@@ -136,7 +136,7 @@ FFmpeg::setup_general ()
}
}
- _frame = avcodec_alloc_frame ();
+ _frame = av_frame_alloc ();
if (_frame == 0) {
throw DecodeError (N_("could not allocate frame"));
}
diff --git a/src/lib/filter_graph.cc b/src/lib/filter_graph.cc
index cd5d19807..7c006aa58 100644
--- a/src/lib/filter_graph.cc
+++ b/src/lib/filter_graph.cc
@@ -122,7 +122,8 @@ FilterGraph::FilterGraph (shared_ptr<const FFmpegContent> content, libdcp::Size
throw DecodeError (N_("could not configure filter graph."));
}
- /* XXX: leaking `inputs' / `outputs' ? */
+ avfilter_inout_free (&inputs);
+ avfilter_inout_free (&outputs);
}
FilterGraph::~FilterGraph ()