Skip to content

Instantly share code, notes, and snippets.

@BtbN
Created December 9, 2013 17:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BtbN/7876347 to your computer and use it in GitHub Desktop.
Save BtbN/7876347 to your computer and use it in GitHub Desktop.
stdin
diff --git a/xbmc/cores/dvdplayer/DVDCodecs/Video/VAAPI_VPP.cpp b/xbmc/cores/dvdplayer/DVDCodecs/Video/VAAPI_VPP.cpp
index c88e402..2bf4d50 100644
--- a/xbmc/cores/dvdplayer/DVDCodecs/Video/VAAPI_VPP.cpp
+++ b/xbmc/cores/dvdplayer/DVDCodecs/Video/VAAPI_VPP.cpp
@@ -394,8 +394,12 @@ CVPPPicture CVPP::DoDeint(const CVPPPicture& input, bool topFieldFirst, bool fir
CVPPPicture procPic = input;
- if(firstCall && m_forwardReferences.size() < m_forwardReferencesCount)
+ if(m_forwardReferences.size() < m_forwardReferencesCount)
+ {
+ if(!firstCall)
+ m_forwardReferences.push_back(input);
return CVPPPicture();
+ }
CSurfacePtr deintTarget = getFreeSurface();
if(!deintTarget.get())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment