mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:19:49 +00:00
qcap: Added AVICompressorOut_DecideBufferSize implementation.
This commit is contained in:
parent
6b30b6fb4e
commit
0414557ef7
1 changed files with 13 additions and 2 deletions
|
@ -547,8 +547,19 @@ static const BasePinFuncTable AVICompressorOutputBasePinVtbl = {
|
|||
|
||||
static HRESULT WINAPI AVICompressorOut_DecideBufferSize(BaseOutputPin *base, IMemAllocator *alloc, ALLOCATOR_PROPERTIES *ppropInputRequest)
|
||||
{
|
||||
FIXME("\n");
|
||||
return E_NOTIMPL;
|
||||
AVICompressor *This = impl_from_BasePin(&base->pin);
|
||||
ALLOCATOR_PROPERTIES actual;
|
||||
|
||||
TRACE("(%p)\n", This);
|
||||
|
||||
if (!ppropInputRequest->cBuffers)
|
||||
ppropInputRequest->cBuffers = 1;
|
||||
if (ppropInputRequest->cbBuffer < This->videoinfo->bmiHeader.biSizeImage)
|
||||
ppropInputRequest->cbBuffer = This->videoinfo->bmiHeader.biSizeImage;
|
||||
if (!ppropInputRequest->cbAlign)
|
||||
ppropInputRequest->cbAlign = 1;
|
||||
|
||||
return IMemAllocator_SetProperties(alloc, ppropInputRequest, &actual);
|
||||
}
|
||||
|
||||
static HRESULT WINAPI AVICompressorOut_DecideAllocator(BaseOutputPin *base,
|
||||
|
|
Loading…
Reference in a new issue