Skip to content

Commit

Permalink
VideoPlayer: drop deprecated ffmpeg paramter: refcounted_frames
Browse files Browse the repository at this point in the history
  • Loading branch information
FernetMenta committed Nov 24, 2017
1 parent 4b22591 commit a947bbe
Showing 1 changed file with 0 additions and 4 deletions.
Expand Up @@ -430,10 +430,6 @@ bool CDVDVideoCodecFFmpeg::Open(CDVDStreamInfo &hints, CDVDCodecOptions &options
av_opt_set(m_pCodecContext, it->m_name.c_str(), it->m_value.c_str(), 0);
}

// If non-zero, the decoded audio and video frames returned from avcodec_decode_video2() are reference-counted and are valid indefinitely.
// Without this frames will get (deep) copied when deinterlace is set to automatic, but file is not deinterlaced.
m_pCodecContext->refcounted_frames = 1;

if (avcodec_open2(m_pCodecContext, pCodec, nullptr) < 0)
{
CLog::Log(LOGDEBUG,"CDVDVideoCodecFFmpeg::Open() Unable to open codec");
Expand Down

0 comments on commit a947bbe

Please sign in to comment.