win-mf: Remove extensions/profile from AAC header

With this change "Movies & TV" (version 3.6.2251.0) and Firefox 47.0
play audio encoded with mf_aac
master
John Bradley 2016-08-06 23:29:44 +02:00 committed by Palana
parent 39bdf1b666
commit 92f7ff8221
2 changed files with 2 additions and 9 deletions

View File

@ -136,14 +136,7 @@ void MFAAC::Encoder::InitializeExtraData()
*extraData16 |= channels << 3;
*extraData16 = SWAPU16(*extraData16);
// Extensions
extraData16++;
*extraData16 = 0x2b7 << 5;
// Profile
*extraData16 |= profile;
*extraData16 = SWAPU16(*extraData16);
extraData[4] = 0;
extraData[2] = 0;
#undef SWAPU16
}

View File

@ -74,7 +74,7 @@ private:
ComPtr<IMFTransform> transform;
ComPtr<IMFSample> outputSample;
std::vector<BYTE> packetBuffer;
UINT8 extraData[5];
UINT8 extraData[3];
};
static const UINT32 FrameSize = 1024;