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

Commit 4a31fe0c authored by Lajos Molnar's avatar Lajos Molnar Committed by android-build-merger
Browse files

Merge \"MPEG4Writer: Fix writing multiple NAL units in a video sample\" into nyc-mr1-dev

am: 817cdc11

Change-Id: Ia1c83d040d3dbc202ca86c6a5438cae2647e0fcd
parents b6075ecb 817cdc11
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1179,7 +1179,7 @@ off64_t MPEG4Writer::addMultipleLengthPrefixedSamples_l(MediaBuffer *buffer) {

    while (getNextNALUnit(&data, &searchSize, &nextNalStart,
            &nextNalSize, true) == OK) {
        size_t currentNalSize = nextNalStart - currentNalStart - 3 /* strip start-code */;
        size_t currentNalSize = nextNalStart - currentNalStart - 4 /* strip start-code */;
        MediaBuffer *nalBuf = new MediaBuffer((void *)currentNalStart, currentNalSize);
        addLengthPrefixedSample_l(nalBuf);
        nalBuf->release();