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

Commit aee4cab2 authored by Marco Nelissen's avatar Marco Nelissen Committed by Automerger Merge Worker
Browse files

Merge "Fix integer overflow abort" into rvc-dev am: 7f6c727f

Change-Id: I2898cd996b5e7252a4a58e4a009edf04efecd391
parents 71d61746 7f6c727f
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -5967,7 +5967,11 @@ media_status_t MPEG4Source::read(
                    sampleTime += mElstInitialEmptyEditTicks;
                }
                if (mElstShiftStartTicks > 0){
                    if (sampleTime > mElstShiftStartTicks) {
                        sampleTime -= mElstShiftStartTicks;
                    } else {
                        sampleTime = 0;
                    }
                }
                targetSampleTimeUs = (sampleTime * 1000000ll) / mTimescale;
            }