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

Commit f7df9ab3 authored by Ichitaro Kohara's avatar Ichitaro Kohara Committed by David Pursehouse
Browse files

Fixed data offset at parsing IPMP Descriptors

MPEG4Extractor::parseDrmSINF() miscalculated data offset in parsing
IPMP Descriptors. This commit makes it to take in 2 bytes which is
the size of IPMPS_Type field.

Change-Id: I42cbb6793af9d9b2f14dbfdd7a616096002793f9
parent 5bf2560c
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -682,8 +682,9 @@ status_t MPEG4Extractor::parseDrmSINF(off64_t *offset, off64_t data_offset) {
            }
            }
            sinf->len = dataLen - 3;
            sinf->len = dataLen - 3;
            sinf->IPMPData = new char[sinf->len];
            sinf->IPMPData = new char[sinf->len];
            data_offset += 2;


            if (mDataSource->readAt(data_offset + 2, sinf->IPMPData, sinf->len) < sinf->len) {
            if (mDataSource->readAt(data_offset, sinf->IPMPData, sinf->len) < sinf->len) {
                return ERROR_IO;
                return ERROR_IO;
            }
            }
            data_offset += sinf->len;
            data_offset += sinf->len;