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

Commit 7600f934 authored by James Dong's avatar James Dong Committed by Android Git Automerger
Browse files

am f0aa24d9: Merge "Added damr box for AMR (NB and WB) sample entry" into gingerbread

Merge commit 'f0aa24d9' into gingerbread-plus-aosp

* commit 'f0aa24d9':
  Added damr box for AMR (NB and WB) sample entry
parents 3b724c83 f0aa24d9
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -1615,6 +1615,16 @@ void MPEG4Writer::Track::writeTrackHeader(
                        mOwner->write(kData2, sizeof(kData2));

                    mOwner->endBox();  // esds
                  } else if (!strcasecmp(MEDIA_MIMETYPE_AUDIO_AMR_NB, mime) ||
                             !strcasecmp(MEDIA_MIMETYPE_AUDIO_AMR_WB, mime)) {
                    // 3gpp2 Spec AMRSampleEntry fields
                    mOwner->beginBox("damr");
                      mOwner->writeCString("   ");  // vendor: 4 bytes
                      mOwner->writeInt8(0);         // decoder version
                      mOwner->writeInt16(0x83FF);   // mode set: all enabled
                      mOwner->writeInt8(0);         // mode change period
                      mOwner->writeInt8(1);         // frames per sample
                    mOwner->endBox();
                  }
                mOwner->endBox();
            } else {