- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
After a few days of disscussion the MPEG4 decoder issue with Scott, he solve the problem. But whenever I use Scott's or Vladimir's code, there is always a "segmentation fault" when I run my decoder.
I have looked into this problem for a long time, and have found something.
First, problem comes here,
umcRes = dst.RenderFrame();
Then I turn into the function RenderFrame of FWVideoRender, problem comes here,
for (int i = 0; i < m_SrcInfo.height; i++)
{
umcRes = m_pFileWriter->PutData((unsigned char *)m_Buffers[m_iReadIndex].surface + i * m_nPitch, nbytes);
if (UMC_OK != umcRes)
break;
}
the first for loop in "RenderFrame".
Then I looking into PutDat a in "FileWriter", problem comes here,
if((UMC_OK == ret) && (tmp_size <= m_uiPageSize * 1024))
{
memcpy(m_pbBuffer + m_stPos, (unsigned char*)data + bufsize, tmp_size);
m_stPos += tmp_size;
break;
}
Finally, the memcpy function is wrong. Maybe there is something wrong with the pointer, But I don't know how to fix it.
I hope someone could give me some suggestion, and this problem is very important to me. Thanks very much.
PS:I build my application in Fedora Core4.
Wu Yu
I have looked into this problem for a long time, and have found something.
First, problem comes here,
umcRes = dst.RenderFrame();
Then I turn into the function RenderFrame of FWVideoRender, problem comes here,
for (int i = 0; i < m_SrcInfo.height; i++)
{
umcRes = m_pFileWriter->PutData((unsigned char *)m_Buffers[m_iReadIndex].surface + i * m_nPitch, nbytes);
if (UMC_OK != umcRes)
break;
}
the first for loop in "RenderFrame".
Then I looking into PutDat a in "FileWriter", problem comes here,
if((UMC_OK == ret) && (tmp_size <= m_uiPageSize * 1024))
{
memcpy(m_pbBuffer + m_stPos, (unsigned char*)data + bufsize, tmp_size);
m_stPos += tmp_size;
break;
}
Finally, the memcpy function is wrong. Maybe there is something wrong with the pointer, But I don't know how to fix it.
I hope someone could give me some suggestion, and this problem is very important to me. Thanks very much.
PS:I build my application in Fedora Core4.
Wu Yu
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for finding the issue. Could you please submitt bug report through Intel Premier Support
Regards,
Vladimir
Vladimir

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page