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

Commit 80804f4e authored by Chong Zhang's avatar Chong Zhang
Browse files

print warning if offset != buffer size

Bug: 17110981
Change-Id: Iacceca203372f4c06ff5ef7ce98edd5554727b64
parent a8143b2b
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -358,6 +358,11 @@ ARTPAssembler::AssemblyStatus AMPEG4ElementaryAssembler::addPacket(
            CopyTimes(accessUnit, buffer);
            mPackets.push_back(accessUnit);
        }

        if (offset != buffer->size()) {
            ALOGW("potentially malformed packet (offset %d, size %d)",
                    offset, buffer->size());
        }
    }

    queue->erase(queue->begin());