diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2012-10-14 11:34:26 +0400 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2012-10-14 11:34:26 +0400 |
commit | cf31257593de4f73728e3674bf2e46991e37dbc3 (patch) | |
tree | eaabf839993a66a449608732de613c29df7cf55c /decoder/LAVVideo | |
parent | 366dd9b1751e95d4b06d78104dd160433e3123ab (diff) |
Revert "Disable thread-safe buffers with DXVA2-CB, no advantage for hardware codecs."
This reverts commit 366dd9b1751e95d4b06d78104dd160433e3123ab.
This still has some performance advantages on slower CPUs where the memory copy takes more time.
Diffstat (limited to 'decoder/LAVVideo')
-rw-r--r-- | decoder/LAVVideo/decoders/dxva2dec.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/decoder/LAVVideo/decoders/dxva2dec.h b/decoder/LAVVideo/decoders/dxva2dec.h index 74b71a5c..06eff279 100644 --- a/decoder/LAVVideo/decoders/dxva2dec.h +++ b/decoder/LAVVideo/decoders/dxva2dec.h @@ -52,6 +52,7 @@ public: STDMETHODIMP PostConnect(IPin *pPin); STDMETHODIMP_(long) GetBufferCount(); STDMETHODIMP_(const WCHAR*) GetDecoderName() { return m_bNative ? L"dxva2n" : L"dxva2cb"; } + STDMETHODIMP HasThreadSafeBuffers() { return m_bNative ? S_FALSE : S_OK; } // CDecBase STDMETHODIMP Init(); |