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

Commit 0b609496 authored by Rakesh Kumar's avatar Rakesh Kumar
Browse files

Fix integer overflow in MPEG4Extractor

Fix interger overflow due to addition of uint32_t and int32_t.

Bug: 241354088
Test: Extracted the clip shared in bug by using mpeg4 extractor
Change-Id: I792fffb369c5068427c543b63fb1af2013c85918
parent 5ec9a17f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6712,7 +6712,7 @@ media_status_t MPEG4Source::fragmentedRead(
        const Sample *smpl = &mCurrentSamples[mCurrentSampleIndex];
        offset = smpl->offset;
        size = smpl->size;
        cts = mCurrentTime + smpl->compositionOffset;
        cts = (int64_t)mCurrentTime + (int64_t)smpl->compositionOffset;

        if (mElstInitialEmptyEditTicks > 0) {
            cts += mElstInitialEmptyEditTicks;