2012-06-06 10 views
1

mediafoundation에서 디코더 ogg를 시도합니다. 지금은 dshow 필터를 볼 수 있지만 나는 미디어 파운데이션에> pbFormat을 inMediaType-을 얻는 방법을 모르는 VORBISFORMAT2VorbisFormat2를 얻는 방법

struct VORBISFORMAT2 
{ 
unsigned long channels; 
unsigned long samplesPerSec; 
unsigned long bitsPerSample; 
unsigned long headerSize[3]; // 0: Identification, 1: Comment, 2: CodecSetup 
}; 

VorbisDecodeInputPin::SetMediaType(const CMediaType* inMediaType) 
{ 
    ... 
    mVorbisDecoder.Init(reinterpret_cast<VORBISFORMAT2*>(inMediaType->pbFormat)); 
} 

를 만드는 방법을 이해하지 않습니다. 또는 libvorbis를 사용하여 VORBISFORMAT2의 헤더를 얻는 방법은 무엇입니까?

답변

0

나는 지금 vorbis_analysis_headerout을 사용하여 해결했습니다