Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b3e1f71b authored by Ronghua Wu's avatar Ronghua Wu Committed by Android Git Automerger
Browse files

am 841d22b0: libstagefright: Use aligned width and height.

* commit '841d22b0':
  libstagefright: Use aligned width and height.
parents a789e519 841d22b0
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -292,8 +292,10 @@ Bool PVAllocVideoData(VideoDecControls *decCtrl, int width, int height, int nLay

    if (video->shortVideoHeader == PV_TRUE)
    {
        video->displayWidth = video->width = width;
        video->displayHeight = video->height = height;
        video->displayWidth = width;
        video->displayHeight = height;
        video->width = (width + 15) & -16;
        video->height = (height + 15) & -16;

        video->nMBPerRow =
            video->nMBinGOB  = video->width / MB_SIZE;