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

Commit 333af87e authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Add AudioPresentation Support in MPEG4 Extractor" am: 33bbd02f

parents 8d3636cd 33bbd02f
Loading
Loading
Loading
Loading
+10 −0
Original line number Original line Diff line number Diff line
@@ -6500,6 +6500,16 @@ media_status_t MPEG4Source::read(
            AMediaFormat_setInt32(meta, AMEDIAFORMAT_KEY_IS_SYNC_FRAME, 1);
            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;
        ++mCurrentSampleIndex;


        *out = mBuffer;
        *out = mBuffer;