Commit 0414557e authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

qcap: Added AVICompressorOut_DecideBufferSize implementation.

parent 6b30b6fb
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment