diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-01-01 17:01:07 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-01-01 17:01:07 +0000 |
| commit | b9567ce4b9212c3ed386592d318eea0e639472c0 (patch) | |
| tree | 70af2cb0d82df42e6acdc99b9d579ccbf11c1683 | |
| parent | 18a11ac88390784a19c21093d05c39c328366b5f (diff) | |
Bump ffmpeg and try to fix small leak with filters.
| -rw-r--r-- | cscript | 2 | ||||
| -rw-r--r-- | src/lib/ffmpeg.cc | 4 | ||||
| -rw-r--r-- | src/lib/filter_graph.cc | 3 |
3 files changed, 5 insertions, 4 deletions
@@ -114,7 +114,7 @@ def make_control(version, bits, filename): print >>f,' digital projectors.' def dependencies(target): - return (('ffmpeg-cdist', '0b7ef017aca8b572914518c759db1e234d8fc505'), + return (('ffmpeg-cdist', 'a629ea68a20d990b4e61c16067e91563d8d08f50'), ('libdcp', 'v0.91')) def build(target): 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 () |
