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

Commit 4e314d91 authored by Dongwon Kang's avatar Dongwon Kang Committed by android-build-merger
Browse files

[automerger] m4v_h263: add a test for invalid/negative value am: 7802c68a...

[automerger] m4v_h263: add a test for invalid/negative value am: 7802c68a am: 08aa2367 am: 644ad716 am: c9528234 am: ee98fbf5 am: e82c14f4
am: 3c1c45dd

Change-Id: Icf5f4e75782e692f090c25e8f682f94757e16d7e
parents 29b1c433 3c1c45dd
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -52,7 +52,11 @@ PV_STATUS PV_ReadVideoPacketHeader(VideoDecData *video, int *next_MB)
        PV_BitstreamByteAlign(stream);
        BitstreamReadBits32(stream, resync_marker_length);

        *next_MB = (int) BitstreamReadBits16(stream, nbits);
        int mbnum = (int) BitstreamReadBits16(stream, nbits);
        if (mbnum < 0) {
            return PV_FAIL;
        }
        *next_MB = mbnum;
//      if (*next_MB <= video->mbnum)   /*  needs more investigation */
//          *next_MB = video->mbnum+1;