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

Commit fa51e09b authored by Rachad's avatar Rachad
Browse files

Fixed timestamp handling in ESQueue Access Unit parser.

  This fixes bug b/10294801

Change-Id: Ie96d36e2ff6fdee0c949a85da3602ab04b34bf6e
parent d656a4be
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -504,15 +504,11 @@ int64_t ElementaryStreamQueue::fetchTimestamp(size_t size) {

        if (first) {
            timeUs = info->mTimestampUs;
            first = false;
        }

        if (info->mLength > size) {
            info->mLength -= size;

            if (first) {
                info->mTimestampUs = -1;
            }

            size = 0;
        } else {
            size -= info->mLength;
@@ -521,7 +517,6 @@ int64_t ElementaryStreamQueue::fetchTimestamp(size_t size) {
            info = NULL;
        }

        first = false;
    }

    if (timeUs == 0ll) {