mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1133479 - Fixed media/gmp-clearkey build on mingw. r=cpearce
This commit is contained in:
parent
cc26a13e4e
commit
6c24fa0989
@ -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;
|
||||
|
@ -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,
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -35,6 +35,10 @@ if CONFIG['OS_ARCH'] == 'WINNT':
|
||||
'WMFUtils.cpp',
|
||||
]
|
||||
|
||||
OS_LIBS += [
|
||||
'mfuuid',
|
||||
]
|
||||
|
||||
DEFINES['ENABLE_WMF'] = True
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user