m_videoVDPAUScaling = false;
m_videoNonLinStretchRatio = 0.5f;
m_videoAllowLanczos3 = false;
+ m_videoAllowMpeg4VDPAU = false;
m_musicUseTimeSeeking = true;
m_musicTimeSeekForward = 10;
XMLUtils::GetBoolean(pElement,"vdpauscaling",m_videoVDPAUScaling);
XMLUtils::GetFloat(pElement, "nonlinearstretchratio", m_videoNonLinStretchRatio, 0.01f, 1.0f);
XMLUtils::GetBoolean(pElement,"allowlanczos3",m_videoAllowLanczos3);
+ XMLUtils::GetBoolean(pElement,"allowmpeg4vdpau",m_videoAllowMpeg4VDPAU);
}
pElement = pRootElement->FirstChildElement("musiclibrary");
bool m_videoVDPAUScaling;
float m_videoNonLinStretchRatio;
bool m_videoAllowLanczos3;
+ bool m_videoAllowMpeg4VDPAU;
CStdString m_videoDefaultPlayer;
CStdString m_videoDefaultDVDPlayer;
if(pCodec->id == hints.codec
&& pCodec->capabilities & CODEC_CAP_HWACCEL_VDPAU)
{
+ if ((pCodec->id == CODEC_ID_MPEG4 || pCodec->id == CODEC_ID_XVID) && !g_advancedSettings.m_videoAllowMpeg4VDPAU)
+ continue;
+
CLog::Log(LOGNOTICE,"CDVDVideoCodecFFmpeg::Open() Creating VDPAU(%ix%i, %d)",hints.width, hints.height, hints.codec);
CVDPAU* vdp = new CVDPAU();
m_pCodecContext->codec_id = hints.codec;