quartz: Refuse WAVE_FORMAT_PCM/EXTENSIBLE in acmwrapper.

This commit is contained in:
Maarten Lankhorst 2010-12-01 23:17:31 +01:00 committed by Alexandre Julliard
parent cfd4ed9018
commit 5a8ce4c793
1 changed files with 4 additions and 0 deletions

View File

@ -259,7 +259,11 @@ static HRESULT WINAPI ACMWrapper_SetMediaType(TransformFilter *tf, PIN_DIRECTION
(IsEqualIID(&pmt->formattype, &FORMAT_WaveFormatEx)))
{
HACMSTREAM drv;
WAVEFORMATEX *wfx = (WAVEFORMATEX*)pmt->pbFormat;
AM_MEDIA_TYPE* outpmt = &This->tf.pmt;
if (!wfx || wfx->wFormatTag == WAVE_FORMAT_PCM || wfx->wFormatTag == WAVE_FORMAT_EXTENSIBLE)
return VFW_E_TYPE_NOT_ACCEPTED;
FreeMediaType(outpmt);
This->pWfIn = (LPWAVEFORMATEX)pmt->pbFormat;