How to enabled IAMStreamConfig Interface ?

Hi !

I try to write my own source filter which could transmit h264 video stream to ffdshow mpeg-4 decoder

myfiltr->mpeg4 decoder->render

I try to use IAMStreamConfig Interface

HRESULT STDMETHODCALLTYPE SetFormat(AM_MEDIA_TYPE *pmt);

HRESULT STDMETHODCALLTYPE GetFormat(AM_MEDIA_TYPE **ppmt);

HRESULT STDMETHODCALLTYPE GetNumberOfCapabilities(int *piCount,int *piSize);

HRESULT STDMETHODCALLTYPE GetStreamCaps(int iIndex, AM_MEDIA_TYPE **pmt, BYTE *pSCC);

I overwrote above function (visual c++ 2005) but my filter doesn`t use this function .

Please help me !!!

[886 byte] By [Tomys] at [2007-12-25]

Software Development for Windows Vista

Site Classified