Remove some deprecated FFmpeg stuff.
[dcpomatic.git] / src / lib / ffmpeg_decoder.cc
index d9b7796599b8c7cdf7687454fd6dc668db5195ef..b672b2c1fd6e571dbc5140b30c43729888bb38cd 100644 (file)
@@ -167,8 +167,6 @@ FFmpegDecoder::pass ()
                return;
        }
 
-       avcodec_get_frame_defaults (_frame);
-
        shared_ptr<const Film> film = _film.lock ();
        assert (film);
 
@@ -345,8 +343,6 @@ FFmpegDecoder::seek (VideoContent::Frame frame, bool accurate)
                        continue;
                }
                
-               avcodec_get_frame_defaults (_frame);
-               
                int finished = 0;
                r = avcodec_decode_video2 (video_codec_context(), _frame, &finished, &_packet);
                if (r >= 0 && finished) {