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

Commit d8010502 authored by Ronghua Wu's avatar Ronghua Wu Committed by The Android Automerger
Browse files

libstagefright: Use aligned width and height.

Bug: 19014147
Change-Id: I33314b02448e436c43fcfad086b5edfa650dcf83
parent 1d46191a
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;