Divx解码遇到的错误,顺便求可用的Divx完整解码代码
我写的是网络视频程序,从服务器端接收的BITMAPINFO正确,但是无法正确进行解码
BYTE* m_pOutBuf;
BITMAPINFO m_InInfo,m_Test;
COMPVARS m_CV;
m_CV.hic=ICOpen(m_CV.fccType,mmioFOURCC('d','i','v','x'),ICMODE_DECOMPRESS);
if (m_CV.hic==NULL)
{
afxDump<<m_CV.fccType<<"\n";
MessageBox("please install the proper decompressor!");
return;
}else
{
//determin the ouput format
m_OutFormatSize=ICDecompressGetFormatSize(m_CV.hic,&m_InInfo);
memset(&m_Test,0,sizeof(BITMAPINFO));
if(ICDecompressGetFormat(m_CV.hic, &m_InInfo, &m_Test)!=ICERR_OK)
AfxMessageBox("格式获取错误");
if(ICDecompressBegin(m_CV.hic,&m_InInfo, &m_Test)==ICERR_OK)AfxMessageBox("supported");
ICDecompress(pDlg->m_CV.hic,0,&pDlg->m_InInfo.bmiHeader,pDlg->m_pData,&pDlg->m_Test.bmiHeader,pDlg->m_pOutBuf);
运行直接出错