Skip to content

Commit

Permalink
vaapi: increase number of video surface allocated
Browse files Browse the repository at this point in the history
  • Loading branch information
FernetMenta committed Aug 14, 2011
1 parent f46d7a9 commit dff7d82
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xbmc/cores/dvdplayer/DVDCodecs/Video/VAAPI.cpp
Expand Up @@ -358,7 +358,9 @@ bool CDecoder::EnsureContext(AVCodecContext *avctx)
else
m_refs = 2;
}
return EnsureSurfaces(avctx, m_refs + 3);
// number of reference + 3 renderbuffers + Holder
// an extra one should not harm
return EnsureSurfaces(avctx, m_refs + 5);
}

bool CDecoder::EnsureSurfaces(AVCodecContext *avctx, unsigned n_surfaces_count)
Expand Down

0 comments on commit dff7d82

Please sign in to comment.