From 62b071e27ddf54d37b870df64bced973f8a50e2d Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 12 Jun 2014 23:05:46 +0100 Subject: [PATCH 1/1] Swap deprecated FFmpeg call. --- src/lib/ffmpeg_decoder.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, 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); -- 2.30.2