diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-06-12 23:05:46 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-06-12 23:05:46 +0100 |
| commit | 62b071e27ddf54d37b870df64bced973f8a50e2d (patch) | |
| tree | e66410e40d1c541213bf1e61e862007db92fd9c6 /src/lib/ffmpeg_decoder.cc | |
| parent | 04533b9cf34ce8089113015715083ee9c5b2b001 (diff) | |
Swap deprecated FFmpeg call.
Diffstat (limited to 'src/lib/ffmpeg_decoder.cc')
| -rw-r--r-- | src/lib/ffmpeg_decoder.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ffmpeg_decoder.cc b/src/lib/ffmpeg_decoder.cc index 0dae2a4ed..a2b71aec3 100644 --- a/src/lib/ffmpeg_decoder.cc +++ b/src/lib/ffmpeg_decoder.cc @@ -317,7 +317,7 @@ FFmpegDecoder::minimal_run (boost::function<bool (optional<ContentTime>, optiona if (_packet.stream_index == _video_stream) { - avcodec_get_frame_defaults (_frame); + av_frame_unref (_frame); int got_picture = 0; r = avcodec_decode_video2 (video_codec_context(), _frame, &got_picture, &_packet); |
