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

Commit c85d6196 authored by Rachad's avatar Rachad Committed by Android (Google) Code Review
Browse files

Merge " Fixed timestamp handling in ESQueue Access Unit parser. This fixes...

Merge "  Fixed timestamp handling in ESQueue Access Unit parser.   This fixes bug b/10294801" into klp-dev
parents df60eff8 fa51e09b
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) {