diff options
author | Rainer Hochecker <fernetmenta@online.de> | 2014-09-09 20:35:08 +0200 |
---|---|---|
committer | Rainer Hochecker <fernetmenta@online.de> | 2014-09-09 20:35:08 +0200 |
commit | e7f3929e961e73e292e66387faf30e97d886019d (patch) | |
tree | 38c79fd18e73ef19e7e4fb0c0353b49e2163a30c | |
parent | 63bd1711899f55c96c3f5062b17ef1470f197d0a (diff) |
dxva: temp fix for borked video surface handling
-rw-r--r-- | xbmc/cores/dvdplayer/DVDCodecs/Video/DXVA.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xbmc/cores/dvdplayer/DVDCodecs/Video/DXVA.cpp b/xbmc/cores/dvdplayer/DVDCodecs/Video/DXVA.cpp index ae7a1bc4dd..d26b888be2 100644 --- a/xbmc/cores/dvdplayer/DVDCodecs/Video/DXVA.cpp +++ b/xbmc/cores/dvdplayer/DVDCodecs/Video/DXVA.cpp @@ -825,7 +825,7 @@ bool CDecoder::Open(AVCodecContext *avctx, enum PixelFormat fmt, unsigned int su m_shared = surfaces; if(avctx->refs > m_refs) - m_refs = avctx->refs; + m_refs = avctx->refs+2; if(m_refs == 0) { |