Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/LAVFilters.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2013-05-04 15:16:19 +0400
committerHendrik Leppkes <h.leppkes@gmail.com>2013-05-04 15:16:19 +0400
commit2522d511dcf6a6a2bef7e65510ceb11a88a2dc79 (patch)
treec3537a78d61b2a598e93858e23f026f18c7f78bf /decoder
parent34569a511cc2bff66a404516eb1938ac887af0bd (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.h1
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();