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

Commit ebd44735 authored by Shalaj Jain's avatar Shalaj Jain Committed by Ricardo Cerqueira
Browse files

libstagefright: Populating sync sample index for Video track only.

- While an A/V clip in playback, seek fails to desired location
  and starts playback from zero position.
- The stss atom has zero entry count and sync sample index for Audio
  track. Due to this seek fails and starts playback from zero position.
- Skip populating values from stss atom for Audio track, fix added
  for the same.

Change-Id: I3b9073dc182cf4afc8faf612e1d69493d64d113a
CRs-Fixed: 271385
parent ab557e2d
Loading
Loading
Loading
Loading
+10 −5
Original line number Diff line number Diff line
@@ -1134,6 +1134,10 @@ status_t MPEG4Extractor::parseChunk(off64_t *offset, int depth) {
        }

        case FOURCC('s', 't', 's', 's'):
        {
            const char *mime;
            CHECK(mLastTrack->meta->findCString(kKeyMIMEType, &mime));
            if(strncmp(mime, "audio/", 6))
            {
                status_t err =
                    mLastTrack->sampleTable->setSyncSampleParams(
@@ -1142,6 +1146,7 @@ status_t MPEG4Extractor::parseChunk(off64_t *offset, int depth) {
                if (err != OK) {
                   return err;
                }
            }

            *offset += chunk_size;
            break;