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

Commit 520d2cd5 authored by Xin Li's avatar Xin Li
Browse files

DO NOT MERGE - Merge QP1A.191005.007 into master

Bug: 142297020
Change-Id: I95c78bcad5c3ec4b711b674a3a1ae6612e5dc331
parents c26431a9 69b28f6b
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1355,6 +1355,14 @@ PV_STATUS DecodeShortHeader(VideoDecData *video, Vop *currVop)
            int tmpHeight = (tmpDisplayHeight + 15) & -16;
            int tmpWidth = (tmpDisplayWidth + 15) & -16;

            if (tmpWidth > video->width)
            {
                // while allowed by the spec, this decoder does not actually
                // support an increase in size.
                ALOGE("width increase not supported");
                status = PV_FAIL;
                goto return_point;
            }
            if (tmpHeight * tmpWidth > video->size)
            {
                // This is just possibly "b/37079296".