Skip to content

Commit

Permalink
MPCVideoDec: исправлена работа настройки "Disable DXVA for SD (H.264)…
Browse files Browse the repository at this point in the history
…" для вертикальных видео.
  • Loading branch information
v0lt committed May 11, 2024
1 parent ff7a598 commit c2307e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/filters/transform/MPCVideoDec/MPCVideoDec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2464,7 +2464,8 @@ HRESULT CMPCVideoDecFilter::InitDecoder(const CMediaType* pmt)
}

if (m_CodecId == AV_CODEC_ID_H264) {
if (m_nDXVA_SD && m_nSurfaceWidth < 1280) { // check "Disable DXVA for SD" option
// check "Disable DXVA for SD (H.264)" option
if (m_nDXVA_SD && std::max(m_nSurfaceWidth, m_nSurfaceHeight) <= 1024 && std::min(m_nSurfaceWidth, m_nSurfaceHeight) <= 576) {
break;
}

Expand Down

0 comments on commit c2307e4

Please sign in to comment.