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

Commit 64e267f7 authored by Pavan Chikkala's avatar Pavan Chikkala Committed by Steve Kondik
Browse files

libstagefright: Fix crash in media server mpeg2 playback.

Change-Id: Ifcbb8ed95751efb8aded6cdeb217fab82762a782
 -There is a check in dequeueAccessUnitMPEGAudio function in
  ESQueue that time stamp returned by fetchTimeStamp is always
  greater than 0
 -In the current scenario, valid time stamp set on the first
  frame is getting replaced in the sub sequent code by -1.
 -Fix is to reset the flag after first frame is identified
CRs-Fixed: 512218
parent d0c6951c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -504,6 +504,9 @@ int64_t ElementaryStreamQueue::fetchTimestamp(size_t size) {

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

        if (info->mLength > size) {