diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2015-02-02 18:05:20 +0300 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2015-02-02 18:05:59 +0300 |
commit | 1e84a59a0ba34fe681a41c491b7056b0d073572d (patch) | |
tree | f62edf7cce364c7849a4390e54eaf0f2509c8187 | |
parent | e521e0cb195bf42dccb04dd354ea5ff0186b6ae1 (diff) |
Only NV12 supports yadif deinterlacing, interlaced p010 shouldn't block direct mode
-rw-r--r-- | decoder/LAVVideo/LAVVideo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder/LAVVideo/LAVVideo.cpp b/decoder/LAVVideo/LAVVideo.cpp index 332006f4..62cc15f2 100644 --- a/decoder/LAVVideo/LAVVideo.cpp +++ b/decoder/LAVVideo/LAVVideo.cpp @@ -682,7 +682,7 @@ HRESULT CLAVVideo::CheckDirectMode() m_Decoder.GetPixelFormat(&pix, &bpp); BOOL bDirect = (pix == LAVPixFmt_NV12 || pix == LAVPixFmt_P010); - if (m_Decoder.IsInterlaced() && m_settings.SWDeintMode == SWDeintMode_YADIF) + if (pix == LAVPixFmt_NV12 && m_Decoder.IsInterlaced() && m_settings.SWDeintMode == SWDeintMode_YADIF) bDirect = FALSE; else if (pix == LAVPixFmt_NV12 && m_pOutput->CurrentMediaType().subtype != MEDIASUBTYPE_NV12) bDirect = FALSE; |