Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/mythtv/libs/libmythtv/decoders/mythvdpaucontext.cpp b/mythtv/libs/libmythtv/decoders/mythvdpaucontext.cpp
- index b80eeaad22..56e57ee2d2 100644
- --- a/mythtv/libs/libmythtv/decoders/mythvdpaucontext.cpp
- +++ b/mythtv/libs/libmythtv/decoders/mythvdpaucontext.cpp
- @@ -106,7 +106,8 @@ int MythVDPAUContext::InitialiseContext(AVCodecContext* Context)
- }
- auto* vdpaudevicectx = static_cast<AVVDPAUDeviceContext*>(hwdevicecontext->hwctx);
- - if (av_vdpau_bind_context(Context, vdpaudevicectx->device, vdpaudevicectx->get_proc_address, 0) != 0)
- + if (av_vdpau_bind_context(Context, vdpaudevicectx->device,
- + vdpaudevicectx->get_proc_address, AV_HWACCEL_FLAG_IGNORE_LEVEL) != 0)
- {
- LOG(VB_GENERAL, LOG_ERR, LOC + "Failed to bind VDPAU context");
- av_buffer_unref(&hwdeviceref);
- diff --git a/mythtv/libs/libmythtv/decoders/mythvdpauhelper.cpp b/mythtv/libs/libmythtv/decoders/mythvdpauhelper.cpp
- index b2d56ed8eb..fc0cbeddbb 100644
- --- a/mythtv/libs/libmythtv/decoders/mythvdpauhelper.cpp
- +++ b/mythtv/libs/libmythtv/decoders/mythvdpauhelper.cpp
- @@ -37,9 +37,10 @@ VDPAUCodec::VDPAUCodec(MythCodecContext::CodecProfile Profile, QSize Size, uint3
- bool VDPAUCodec::Supported(int Width, int Height, int Level) const
- {
- + // Note - level checks are now ignored here and in FFmpeg
- uint32_t macros = static_cast<uint32_t>(((Width + 15) & ~15) * ((Height + 15) & ~15)) / 256;
- bool result = (Width <= m_maxSize.width()) && (Height <= m_maxSize.height()) &&
- - (macros <= m_maxMacroBlocks) && (static_cast<uint32_t>(Level) <= m_maxLevel);
- + (macros <= m_maxMacroBlocks) /*&& (static_cast<uint32_t>(Level) <= m_maxLevel)*/;
- if (!result)
- {
- LOG(VB_PLAYBACK, LOG_DEBUG, LOC + QString("Not supported: Size %1x%2 > %3x%4, MBs %5 > %6, Level %7 > %8")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement