提交 92f7ff82 编写于 作者: J John Bradley 提交者: Palana

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
上级 39bdf1b6
......@@ -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
}
......
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册