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

Commit 9985f6af authored by Lajos Molnar's avatar Lajos Molnar Committed by Android Git Automerger
Browse files

am 30d7b488: Merge "MPEG4Writer: Set the correct audio bit rate for camera recorded content"

* commit '30d7b488':
  MPEG4Writer: Set the correct audio bit rate for camera recorded content
parents 0a45cda6 30d7b488
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -2800,8 +2800,10 @@ void MPEG4Writer::Track::writeMp4aEsdsBox() {

    mOwner->writeInt16(0x03);  // XXX
    mOwner->writeInt8(0x00);   // buffer size 24-bit
    mOwner->writeInt32(96000); // max bit rate
    mOwner->writeInt32(96000); // avg bit rate
    int32_t bitRate;
    bool success = mMeta->findInt32(kKeyBitRate, &bitRate);
    mOwner->writeInt32(success ? bitRate : 96000); // max bit rate
    mOwner->writeInt32(success ? bitRate : 96000); // avg bit rate

    mOwner->writeInt8(0x05);   // DecoderSpecificInfoTag
    mOwner->writeInt8(mCodecSpecificDataSize);