2012-05-04, 08:46
(2012-05-03, 18:56)elupus Wrote: 10bit with dxva will never be possible on current hw, and frame based mt is still not enabled, but could easily be allowed for 10bit stuff.It would be nice to also enable frame base mt on 8bit for peoples who are not using DXVA, either because OS simply not support it (people who are under XP SP3 for exemple), either because they've disabled "use DXVA2" in the settings.
As a temporary workaround, i've suggested the following, very easy and quick to implement :
Code:
/* Only allow slice threading, since frame threading is more
* sensitive to changes in frame sizes, and it causes crashes
* during HW accell */
bool disable_mt_frame=true;
#ifdef HAS_DX
disable_mt_frame=g_guiSettings.GetBool("videoplayer.usedxva2");
#endif
if (disable_mt_frame) m_pCodecContext->thread_type = FF_THREAD_SLICE;
else m_pCodecContext->thread_type = FF_THREAD_FRAME;