Commit 19b78a0e authored by Christian Costa's avatar Christian Costa Committed by Alexandre Julliard

Fixed ACM Wrapper.

parent aef6fe31
...@@ -187,7 +187,7 @@ static HRESULT ACMWrapper_ConnectInput(TransformFilterImpl* pTransformFilter, co ...@@ -187,7 +187,7 @@ static HRESULT ACMWrapper_ConnectInput(TransformFilterImpl* pTransformFilter, co
This->pWfOut = (WAVEFORMATEX*)outpmt->pbFormat; This->pWfOut = (WAVEFORMATEX*)outpmt->pbFormat;
This->pWfOut->wFormatTag = WAVE_FORMAT_PCM; This->pWfOut->wFormatTag = WAVE_FORMAT_PCM;
This->pWfOut->wBitsPerSample = 16; This->pWfOut->wBitsPerSample = 16;
This->pWfOut->nBlockAlign = 1; This->pWfOut->nBlockAlign = 4;
This->pWfOut->cbSize = 0; This->pWfOut->cbSize = 0;
This->pWfOut->nAvgBytesPerSec = This->pWfOut->nChannels * This->pWfOut->nSamplesPerSec This->pWfOut->nAvgBytesPerSec = This->pWfOut->nChannels * This->pWfOut->nSamplesPerSec
* (This->pWfOut->wBitsPerSample/8); * (This->pWfOut->wBitsPerSample/8);
...@@ -202,6 +202,9 @@ static HRESULT ACMWrapper_ConnectInput(TransformFilterImpl* pTransformFilter, co ...@@ -202,6 +202,9 @@ static HRESULT ACMWrapper_ConnectInput(TransformFilterImpl* pTransformFilter, co
} }
TRACE("input buffer size %ld\n", This->max_size); TRACE("input buffer size %ld\n", This->max_size);
/* Update buffer size of media samples in output */
((OutputPin*)This->tf.ppPins[1])->allocProps.cbBuffer = OUTPUT_BUFFER_SIZE;
TRACE("Connection accepted\n"); TRACE("Connection accepted\n");
return S_OK; return S_OK;
......
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