diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2013-05-04 15:16:19 +0400 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2013-05-04 15:16:19 +0400 |
commit | 2522d511dcf6a6a2bef7e65510ceb11a88a2dc79 (patch) | |
tree | c3537a78d61b2a598e93858e23f026f18c7f78bf /decoder | |
parent | 34569a511cc2bff66a404516eb1938ac887af0bd (diff) |
avcodec: sync mt decoders to the process thread
This ensures smoother operation in real-world situations, especially
transcoding or AviSynth processing.
Diffstat (limited to 'decoder')
-rw-r--r-- | decoder/LAVVideo/decoders/avcodec.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/decoder/LAVVideo/decoders/avcodec.h b/decoder/LAVVideo/decoders/avcodec.h index 09c37bf5..c608ca98 100644 --- a/decoder/LAVVideo/decoders/avcodec.h +++ b/decoder/LAVVideo/decoders/avcodec.h @@ -47,6 +47,7 @@ public: STDMETHODIMP_(BOOL) IsInterlaced(); STDMETHODIMP_(const WCHAR*) GetDecoderName() { return L"avcodec"; } STDMETHODIMP HasThreadSafeBuffers() { return S_OK; } + STDMETHODIMP SyncToProcessThread() { return m_pAVCtx && m_pAVCtx->thread_count > 1 ? S_OK : S_FALSE; } // CDecBase STDMETHODIMP Init(); |