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

Commit 718ae52c authored by Chong Zhang's avatar Chong Zhang
Browse files

stagefright: always add pts info if max pts gap is set

bug: 31442520
Change-Id: If23d402f6649ad4e8928d14d271accd1f2415a2e
parent d21bcd27
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -827,12 +827,12 @@ int64_t GraphicBufferSource::getTimestamp(const BufferItem &item) {
                int64_t timestampGapUs = originalTimeUs - mPrevOriginalTimeUs;
                timeUs = (timestampGapUs < mMaxTimestampGapUs ?
                    timestampGapUs : mMaxTimestampGapUs) + mPrevModifiedTimeUs;
            }
            mOriginalTimeUs.add(timeUs, originalTimeUs);
            ALOGV("IN  timestamp: %lld -> %lld",
                static_cast<long long>(originalTimeUs),
                static_cast<long long>(timeUs));
        }
        }

        mPrevOriginalTimeUs = originalTimeUs;
        mPrevModifiedTimeUs = timeUs;