Skip to content

Commit

Permalink
VDAU: Fix logic error in MythVDPAUHelper
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-kendall committed Feb 3, 2020
1 parent dc11ecd commit ef49f31
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mythtv/libs/libmythtv/decoders/mythvdpauhelper.cpp
Expand Up @@ -314,8 +314,8 @@ bool MythVDPAUHelper::CheckH264Decode(AVCodecContext *Context)
return false;

int mbs = static_cast<int>(ceil(static_cast<double>(Context->width) / 16.0));
if (!(mbs == 49 ) || (mbs == 54 ) || (mbs == 59 ) || (mbs == 64) ||
(mbs == 113) || (mbs == 118) || (mbs == 123) || (mbs == 128))
if (!(mbs == 49 || mbs == 54 || mbs == 59 || mbs == 64 ||
mbs == 113 || mbs == 118 ||mbs == 123 || mbs == 128))
{
return true;
}
Expand Down

0 comments on commit ef49f31

Please sign in to comment.