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

Commit 33bbd02f authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Add AudioPresentation Support in MPEG4 Extractor"

parents 716474ae 884eafd5
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -6500,6 +6500,16 @@ media_status_t MPEG4Source::read(
            AMediaFormat_setInt32(meta, AMEDIAFORMAT_KEY_IS_SYNC_FRAME, 1);
        }

        void *presentationsData;
        size_t presentationsSize;
        if (AMediaFormat_getBuffer(
                    mFormat, AMEDIAFORMAT_KEY_AUDIO_PRESENTATION_INFO,
                    &presentationsData, &presentationsSize)) {
            AMediaFormat_setBuffer(
                    meta, AMEDIAFORMAT_KEY_AUDIO_PRESENTATION_INFO,
                    presentationsData, presentationsSize);
        }

        ++mCurrentSampleIndex;

        *out = mBuffer;