Swap deprecated FFmpeg call.
authorCarl Hetherington <cth@carlh.net>
Thu, 12 Jun 2014 22:05:46 +0000 (23:05 +0100)
committerCarl Hetherington <cth@carlh.net>
Thu, 12 Jun 2014 22:05:46 +0000 (23:05 +0100)
src/lib/ffmpeg_decoder.cc

index 0dae2a4edc41be11d70855d94e93b9594dc27c39..a2b71aec313f64be093cf10b1e0313c1fdccdbea 100644 (file)
@@ -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);