Bug 1133479 - Fixed media/gmp-clearkey build on mingw. r=cpearce

This commit is contained in:
Jacek Caban 2015-02-17 11:18:04 +01:00
parent cc26a13e4e
commit 6c24fa0989
5 changed files with 5 additions and 11 deletions

View File

@ -38,7 +38,7 @@ AnnexB::ConvertConfig(const std::vector<uint8_t>& aBuffer,
std::vector<uint8_t>& aOutAnnexB)
{
// Skip past irrelevant headers
auto& it = aBuffer.begin() + 5;
auto it = aBuffer.begin() + 5;
if (it >= aBuffer.end()) {
return;

View File

@ -262,8 +262,6 @@ VideoDecoder::SampleToVideoFrame(IMFSample* aSample,
int32_t v_size = stride * (height + padding) / 4;
int32_t halfStride = (stride + 1) / 2;
int32_t halfHeight = (height + 1) / 2;
int32_t halfWidth = (width + 1) / 2;
int32_t totalSize = y_size + 2 * v_size;
GetPlatform()->syncrunonmainthread(WrapTask(aVideoFrame,
&GMPVideoi420Frame::CreateEmptyFrame,

View File

@ -262,10 +262,6 @@ WMFAACDecoder::CreateOutputSample(IMFSample** aOutSample)
hr = MFCreateAlignedMemoryBuffer(bufferSize, alignment, &buffer);
ENSURE(SUCCEEDED(hr), hr);
DWORD maxLength = 0;
DWORD currentLength = 0;
BYTE* dst = nullptr;
hr = sample->AddBuffer(buffer);
ENSURE(SUCCEEDED(hr), hr);

View File

@ -233,10 +233,6 @@ WMFH264Decoder::CreateOutputSample(IMFSample** aOutSample)
hr = MFCreateAlignedMemoryBuffer(bufferSize, alignment, &buffer);
ENSURE(SUCCEEDED(hr), hr);
DWORD maxLength = 0;
DWORD currentLength = 0;
BYTE* dst = nullptr;
hr = sample->AddBuffer(buffer);
ENSURE(SUCCEEDED(hr), hr);

View File

@ -35,6 +35,10 @@ if CONFIG['OS_ARCH'] == 'WINNT':
'WMFUtils.cpp',
]
OS_LIBS += [
'mfuuid',
]
DEFINES['ENABLE_WMF'] = True